Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Do not send record data when destroying it

  • Loading branch information...
commit cf1d5dd3c44703054b902b4acd87c8efa9788639 1 parent 2ccf796
@remiprev authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  lib/her/model/orm.rb
View
3  lib/her/model/orm.rb
@@ -166,10 +166,9 @@ def save # {{{
# @user.destroy
# # Called via DELETE "/users/1"
def destroy # {{{
- params = @data.dup
resource = self
self.class.wrap_in_hooks(resource, :destroy) do |resource, klass|
- klass.request(params.merge(:_method => :delete, :_path => "#{request_path}")) do |parsed_data|
+ klass.request(:_method => :delete, :_path => "#{request_path}") do |parsed_data|
@data = parsed_data[:data]
@metadata = parsed_data[:metadata]
@errors = parsed_data[:errors]
Please sign in to comment.
Something went wrong with that request. Please try again.