public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
respond_to? passes along splat args to avoid introducing the second arg if it 
was omitted
jeremy (author)
Wed Aug 27 21:32:51 -0700 2008
commit  9aa3c59b21433528575052a6571c62c343dd1ce7
tree    96b35c30e39ad565f1f671efbc87a2731ad38cc7
parent  dabd8c82827c6547f3f1870d9d6f8a3e6c1a830d
...
69
70
71
72
73
 
 
74
75
76
...
69
70
71
 
 
72
73
74
75
76
0
@@ -69,8 +69,8 @@ module ActiveRecord
0
         @target
0
       end
0
 
0
-      def respond_to?(symbol, include_priv = false)
0
-        proxy_respond_to?(symbol, include_priv) || (load_target && @target.respond_to?(symbol, include_priv))
0
+      def respond_to?(*args)
0
+        proxy_respond_to?(*args) || (load_target && @target.respond_to?(*args))
0
       end
0
 
0
       # Explicitly proxy === because the instance method removal above

Comments