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 | |
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')
-rw-r--r-- | lib/generators/redmine_plugin/USAGE | 2 | ||||
-rw-r--r-- | lib/plugins/acts_as_versioned/lib/acts_as_versioned.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/generators/redmine_plugin/USAGE b/lib/generators/redmine_plugin/USAGE index 793f2fc5e..c500d54dd 100644 --- a/lib/generators/redmine_plugin/USAGE +++ b/lib/generators/redmine_plugin/USAGE @@ -1,6 +1,6 @@ Description: The plugin generator creates stubs for a new Redmine plugin. - + Example: ./script/rails generate redmine_plugin meetings create plugins/meetings/app 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) |