Permalink
Browse files

respond_to? passes along splat args to avoid introducing the second a…

…rg if it was omitted
  • Loading branch information...
1 parent dabd8c8 commit 9aa3c59b21433528575052a6571c62c343dd1ce7 @jeremy jeremy committed Aug 28, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/lib/active_record/associations/association_proxy.rb
@@ -69,8 +69,8 @@ def proxy_target
@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

0 comments on commit 9aa3c59

Please sign in to comment.