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 !
Changed some methods names because of a conflict
ianwhite (author)
Thu Oct 09 22:02:20 -0700 2008
commit  ab631bcfcbbc0c4e38296e314c20658c6e383c30
tree    06f4a0b71963d9f0c0aca0806cd1e4bb83ab8174
parent  144de668978ff5345f04c1842815b115dc055789
...
17
18
19
20
 
21
22
23
24
 
25
26
27
28
 
29
30
31
...
17
18
19
 
20
21
22
23
 
24
25
26
27
 
28
29
30
31
0
@@ -17,15 +17,15 @@ module Ardes
0
         options.assert_valid_keys(:only, :except)
0
         raise ArgumentError, "you can only specify either :except or :only, not both" if options[:only] && options[:except]
0
         mixin = self.dup
0
-        actions_to_remove(options).each {|a| mixin.remove_action(a) }
0
+        action_methods_to_remove(options).each {|a| mixin.remove_action_method(a) }
0
         controller.send :include, mixin
0
       end
0
       
0
-      def remove_action(action)
0
+      def remove_action_method(action)
0
         undef_method action
0
       end
0
       
0
-      def actions_to_remove(options = {})
0
+      def action_methods_to_remove(options = {})
0
         if options[:only]
0
           instance_methods - options[:only].map(&:to_s)
0
         elsif options[:except]

Comments