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  a444c782125e10ead6227f7cc57b2f5c739111f2
tree    144191f6727471fd90c060df9ae57e4ba438adb6
parent  82778351a8b1036ac4bdc8e72a3f011151fefa31
...
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