diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-21 16:38:29 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-06-21 16:38:29 +0000 |
commit | 3036eaba5238e68381dcfdbcdfc99c4c7e7c795a (patch) | |
tree | 493dc876ea7be7a3a6431dbf4e82ab553317fbbe /lib/plugins/acts_as_versioned | |
parent | 15c7066ddefdc684cb3132a68e2ecf70296eefcf (diff) | |
download | redmine-3036eaba5238e68381dcfdbcdfc99c4c7e7c795a.tar.gz redmine-3036eaba5238e68381dcfdbcdfc99c4c7e7c795a.zip |
Replace tabs with spaces and remove trailing tabs in several files (#20140).
Patch by Mischa The Evil.
git-svn-id: http://svn.redmine.org/redmine/trunk@14365 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/plugins/acts_as_versioned')
-rw-r--r-- | lib/plugins/acts_as_versioned/lib/acts_as_versioned.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/acts_as_versioned/lib/acts_as_versioned.rb b/lib/plugins/acts_as_versioned/lib/acts_as_versioned.rb index adb9fed86..ffd344293 100644 --- a/lib/plugins/acts_as_versioned/lib/acts_as_versioned.rb +++ b/lib/plugins/acts_as_versioned/lib/acts_as_versioned.rb @@ -379,7 +379,7 @@ module ActiveRecord #:nodoc: new_model.send("#{key}=", orig_model.send(key)) if orig_model.respond_to?(key) end - if self.class.columns_hash.include?(self.class.inheritance_column) + if self.class.columns_hash.include?(self.class.inheritance_column) if orig_model.is_a?(self.class.versioned_class) new_model[new_model.class.inheritance_column] = orig_model[self.class.versioned_inheritance_column] elsif new_model.is_a?(self.class.versioned_class) |