Sha256: 2d812a781faccb6ef382c78425d6701ab7e343f503f708277ecec80cf8352777

Contents?: true

Size: 318 Bytes

Versions: 16

Compression:

Stored size: 318 Bytes

Contents

require 'active_support'
require File.dirname(__FILE__) + '/../../proxy'

class LHS::Item < LHS::Proxy

  module Destroy
    extend ActiveSupport::Concern

    def destroy
      record = _data._root._record_class
      _data._request = record.request(method: :delete, url: href)._request
      _data
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
lhs-3.3.6 lib/lhs/concerns/item/destroy.rb
lhs-3.3.5 lib/lhs/concerns/item/destroy.rb
lhs-3.3.3 lib/lhs/concerns/item/destroy.rb
lhs-3.3.2 lib/lhs/concerns/item/destroy.rb
lhs-3.3.1 lib/lhs/concerns/item/destroy.rb
lhs-3.3.0 lib/lhs/concerns/item/destroy.rb
lhs-3.2.0 lib/lhs/concerns/item/destroy.rb
lhs-3.1.3 lib/lhs/concerns/item/destroy.rb
lhs-3.1.1 lib/lhs/concerns/item/destroy.rb
lhs-3.1.0 lib/lhs/concerns/item/destroy.rb
lhs-3.0.5 lib/lhs/concerns/item/destroy.rb
lhs-3.0.4 lib/lhs/concerns/item/destroy.rb
lhs-3.0.3 lib/lhs/concerns/item/destroy.rb
lhs-3.0.2 lib/lhs/concerns/item/destroy.rb
lhs-3.0.1 lib/lhs/concerns/item/destroy.rb
lhs-3.0.0 lib/lhs/concerns/item/destroy.rb