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

- old
+ new

@@ -27,11 +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! - actions.each {|action| undef_method(action)} + actions.uniq!.each {|action| undef_method action} end end end end