aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <shibata.hiroshi@gmail.com>2012-12-03 22:07:14 +0900
committerSHIBATA Hiroshi <shibata.hiroshi@gmail.com>2012-12-03 22:07:14 +0900
commit127411fdf3a3470e8830abf0c7876db67c0c344a (patch)
treeef559cf261da6636f0766f5b41ee5bc62cb10310 /activerecord
parenteaa0d0b7744327151d44d0a147fbb70c72678d35 (diff)
downloadrails-127411fdf3a3470e8830abf0c7876db67c0c344a.tar.gz
rails-127411fdf3a3470e8830abf0c7876db67c0c344a.tar.bz2
rails-127411fdf3a3470e8830abf0c7876db67c0c344a.zip
handled respond_to? with private methods
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/base.rb2
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)