diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-08-27 21:32:51 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-08-27 21:32:51 -0700 |
commit | a444c782125e10ead6227f7cc57b2f5c739111f2 (patch) | |
tree | 144191f6727471fd90c060df9ae57e4ba438adb6 /activerecord/lib/active_record/associations/association_proxy.rb | |
parent | 82778351a8b1036ac4bdc8e72a3f011151fefa31 (diff) | |
download | rails-a444c782125e10ead6227f7cc57b2f5c739111f2.tar.gz rails-a444c782125e10ead6227f7cc57b2f5c739111f2.tar.bz2 rails-a444c782125e10ead6227f7cc57b2f5c739111f2.zip |
respond_to? passes along splat args to avoid introducing the second arg if it was omitted
Diffstat (limited to 'activerecord/lib/active_record/associations/association_proxy.rb')
-rw-r--r-- | activerecord/lib/active_record/associations/association_proxy.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/associations/association_proxy.rb b/activerecord/lib/active_record/associations/association_proxy.rb index 99b8748a48..5427681f3c 100644 --- a/activerecord/lib/active_record/associations/association_proxy.rb +++ b/activerecord/lib/active_record/associations/association_proxy.rb @@ -69,8 +69,8 @@ module ActiveRecord @target end - def respond_to?(symbol, include_priv = false) - proxy_respond_to?(symbol, include_priv) || (load_target && @target.respond_to?(symbol, include_priv)) + def respond_to?(*args) + proxy_respond_to?(*args) || (load_target && @target.respond_to?(*args)) end # Explicitly proxy === because the instance method removal above |