diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-12-03 05:16:38 -0800 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-12-03 05:16:38 -0800 |
commit | 19599c274404169d5c75355a7b5a7f39795b4373 (patch) | |
tree | ef559cf261da6636f0766f5b41ee5bc62cb10310 /activerecord | |
parent | eaa0d0b7744327151d44d0a147fbb70c72678d35 (diff) | |
parent | 127411fdf3a3470e8830abf0c7876db67c0c344a (diff) | |
download | rails-19599c274404169d5c75355a7b5a7f39795b4373.tar.gz rails-19599c274404169d5c75355a7b5a7f39795b4373.tar.bz2 rails-19599c274404169d5c75355a7b5a7f39795b4373.zip |
Merge pull request #8405 from hsbt/fix-respond-initialize-dup
Handle respond_to? with private methods
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 62c8110274..612114bbce 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -557,7 +557,7 @@ module ActiveRecord #:nodoc: end # Backport dup from 1.9 so that initialize_dup() gets called - unless Object.respond_to?(:initialize_dup) + unless Object.respond_to?(:initialize_dup, true) def dup # :nodoc: copy = super copy.initialize_dup(self) |