aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/lib/active_record')
-rwxr-xr-xactiverecord/lib/active_record/base.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb
index 355587aa80..7471e91516 100755
--- a/activerecord/lib/active_record/base.rb
+++ b/activerecord/lib/active_record/base.rb
@@ -905,8 +905,8 @@ module ActiveRecord #:nodoc:
# A Person object with a name attribute can ask person.respond_to?("name"), person.respond_to?("name="), and
# person.respond_to?("name?") which will all return true.
- def respond_to?(method)
- self.class.column_methods_hash[method.to_sym] || respond_to_without_attributes?(method)
+ def respond_to?(method, include_priv = false)
+ self.class.column_methods_hash[method.to_sym] || respond_to_without_attributes?(method, include_priv)
end
private