diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2008-10-16 23:17:49 +0200 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-10-16 23:17:49 +0200 |
commit | 95c609357e78106e9673931d3f60d8ff3cc0a0cd (patch) | |
tree | 82f682f2129f41e6829ef17aeb899843f11c3e71 /activerecord/lib/active_record | |
parent | 9cb5400871b660e2c6d1654346650f07bb52a0c0 (diff) | |
download | rails-95c609357e78106e9673931d3f60d8ff3cc0a0cd.tar.gz rails-95c609357e78106e9673931d3f60d8ff3cc0a0cd.tar.bz2 rails-95c609357e78106e9673931d3f60d8ff3cc0a0cd.zip |
Ensure association proxy responds to private class methods defined in associated class. [#1083]
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/associations/association_collection.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations/association_collection.rb b/activerecord/lib/active_record/associations/association_collection.rb index 09a80be266..b7f37e53f7 100644 --- a/activerecord/lib/active_record/associations/association_collection.rb +++ b/activerecord/lib/active_record/associations/association_collection.rb @@ -320,8 +320,8 @@ module ActiveRecord exists?(record) end - def proxy_respond_to?(method) - super || @reflection.klass.respond_to?(method) + def proxy_respond_to?(method, include_private = false) + super || @reflection.klass.respond_to?(method, include_private) end protected |