public
Description: resources_controller rails plugin: rc makes RESTful controllers fun
Homepage: http://plugins.ardes.com/doc/resources_controller
Clone URL: git://github.com/ianwhite/resources_controller.git
Click here to lend your support to: resources_controller and make a donation at www.pledgie.com !
updating respond_to API
ianwhite (author)
Thu Nov 20 01:56:43 -0800 2008
commit  74345d6985aa07358652fbad990bdb52f01e3e24
tree    3c63bb5769fc78cb1c2f2e19b8d599d7de59a35a
parent  3b8ea1c2027a7601bd4c9a9950dc63ea7983a76d
...
824
825
826
827
 
828
829
830
...
824
825
826
 
827
828
829
830
0
@@ -824,7 +824,7 @@ module Ardes#:nodoc:
0
         resource_specification.find ? resource_specification.find_custom(controller) : super
0
       end
0
       
0
-      def respond_to?(method)
0
+      def respond_to?(method, include_private = false)
0
         super || service.respond_to?(method)
0
       end
0
     
...
101
102
103
104
105
 
 
106
107
108
...
101
102
103
 
 
104
105
106
107
108
0
@@ -101,8 +101,8 @@ module Ardes#:nodoc:
0
       end
0
 
0
       # delegate url help method creation to the controller
0
-      def respond_to_with_named_route_helper?(method)
0
-        respond_to_without_named_route_helper?(method) || controller.resource_named_route_helper_method?(method)
0
+      def respond_to_with_named_route_helper?(method, include_private = false)
0
+        respond_to_without_named_route_helper?(method, include_private) || controller.resource_named_route_helper_method?(method)
0
       end
0
     
0
     private
...
54
55
56
57
58
 
 
59
60
61
...
54
55
56
 
 
57
58
59
60
61
0
@@ -54,8 +54,8 @@ module Ardes#:nodoc:
0
         end
0
       end
0
 
0
-      def respond_to_with_named_route_helper?(method)
0
-        respond_to_without_named_route_helper?(method) || resource_named_route_helper_method?(method)
0
+      def respond_to_with_named_route_helper?(method, include_private = false)
0
+        respond_to_without_named_route_helper?(method, include_private) || resource_named_route_helper_method?(method)
0
       end
0
 
0
       # return true if the passed method (e.g. 'resources_path') corresponds to a defined

Comments