lib/cantango/rails/helpers/rest_helper.rb in cantango-0.9.3.2 vs lib/cantango/rails/helpers/rest_helper.rb in cantango-0.9.4

- old
+ new

@@ -1,8 +1,8 @@ module CanTango::Rails::Helpers::RestHelper CanTango.config.models.available_models.each do |model| class_eval %{ - def delete_#{model}_path obj, options = {} + def delete_#{model.to_s.underscore}_path obj, options = {} #{model}_path obj, {:method => 'delete'}.merge(options) end } end