aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
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 /activemodel
parenteaa0d0b7744327151d44d0a147fbb70c72678d35 (diff)
downloadrails-127411fdf3a3470e8830abf0c7876db67c0c344a.tar.gz
rails-127411fdf3a3470e8830abf0c7876db67c0c344a.tar.bz2
rails-127411fdf3a3470e8830abf0c7876db67c0c344a.zip
handled respond_to? with private methods
Diffstat (limited to 'activemodel')
-rw-r--r--activemodel/lib/active_model/errors.rb2
-rw-r--r--activemodel/lib/active_model/validations.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb
index 00bd68512b..7eaee050cd 100644
--- a/activemodel/lib/active_model/errors.rb
+++ b/activemodel/lib/active_model/errors.rb
@@ -84,7 +84,7 @@ module ActiveModel
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)
diff --git a/activemodel/lib/active_model/validations.rb b/activemodel/lib/active_model/validations.rb
index 45d8677fa0..c7e508958b 100644
--- a/activemodel/lib/active_model/validations.rb
+++ b/activemodel/lib/active_model/validations.rb
@@ -173,7 +173,7 @@ module ActiveModel
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)