diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-23 18:45:14 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-10-23 18:45:14 +0000 |
commit | 6cccdce06eff37c51b0802ad2b85a71497084523 (patch) | |
tree | 45ff4588eca7da9fbc1f3de364eafa1ff128b672 /lib/plugins | |
parent | 9e7f71080f9230656e8a6981d14576f4b3d40a79 (diff) | |
download | redmine-6cccdce06eff37c51b0802ad2b85a71497084523.tar.gz redmine-6cccdce06eff37c51b0802ad2b85a71497084523.zip |
Ability to delete a version from a wiki page history (#10852).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10705 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/plugins')
-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 5ac65e35a..7510462bd 100644 --- a/lib/plugins/acts_as_versioned/lib/acts_as_versioned.rb +++ b/lib/plugins/acts_as_versioned/lib/acts_as_versioned.rb @@ -374,7 +374,7 @@ module ActiveRecord #:nodoc: # Clones a model. Used when saving a new version or reverting a model's version. def clone_versioned_model(orig_model, new_model) self.versioned_attributes.each do |key| - new_model.send("#{key}=", orig_model.send(key)) if orig_model.has_attribute?(key) + 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) |