lib/class_methods.rb in aeonscope-btech_rest-0.5.0 vs lib/class_methods.rb in aeonscope-btech_rest-0.5.2

- old
+ new

@@ -27,10 +27,10 @@ end # Allows one to disable any number of default actions. Accepts the following parameters: # * *actions* - A variable list of REST action symbols you wish to disable. You may use any of the following: index, show, new, create, edit, update, and/or destroy. def disabled_actions *actions - actions.uniq!.each {|action| undef_method action} + actions.uniq.each {|action| undef_method action} end end end end