lib/restful_controller/actions/destroy.rb in restful-controller-0.0.2 vs lib/restful_controller/actions/destroy.rb in restful-controller-0.0.3

- old
+ new

@@ -1,9 +1,9 @@ module RestfulController module Actions module Destroy def destroy - instance_variable_get("@#{self.class.model_name.pluralize}").destroy + instance_variable_get("@#{self.class.model_name}").destroy end end end end \ No newline at end of file