Sha256: 0f2aa622bedcca34015dadd6c3bd5499634a58223510d4cacaae7097fe95efca

Contents?: true

Size: 362 Bytes

Versions: 18

Compression:

Stored size: 362 Bytes

Contents

# frozen_string_literal: true

require 'discard'

module Spree
  module SoftDeletable
    extend ActiveSupport::Concern

    included do
      acts_as_paranoid
      include Spree::ParanoiaDeprecations::InstanceMethods
      extend Spree::ParanoiaDeprecations::ClassMethods

      include Discard::Model
      self.discard_column = :deleted_at
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
solidus_core-2.11.17 app/models/concerns/spree/soft_deletable.rb
solidus_core-2.11.16 app/models/concerns/spree/soft_deletable.rb
solidus_core-2.11.15 app/models/concerns/spree/soft_deletable.rb
solidus_core-2.11.14 app/models/concerns/spree/soft_deletable.rb
solidus_core-2.11.13 app/models/concerns/spree/soft_deletable.rb
solidus_core-2.11.12 app/models/concerns/spree/soft_deletable.rb
solidus_core-2.11.11 app/models/concerns/spree/soft_deletable.rb
solidus_core-2.11.10 app/models/concerns/spree/soft_deletable.rb
solidus_core-2.11.9 app/models/concerns/spree/soft_deletable.rb
solidus_core-2.11.8 app/models/concerns/spree/soft_deletable.rb
solidus_core-2.11.7 app/models/concerns/spree/soft_deletable.rb
solidus_core-2.11.6 app/models/concerns/spree/soft_deletable.rb
solidus_core-2.11.5 app/models/concerns/spree/soft_deletable.rb
solidus_core-2.11.4 app/models/concerns/spree/soft_deletable.rb
solidus_core-2.11.3 app/models/concerns/spree/soft_deletable.rb
solidus_core-2.11.2 app/models/concerns/spree/soft_deletable.rb
solidus_core-2.11.1 app/models/concerns/spree/soft_deletable.rb
solidus_core-2.11.0 app/models/concerns/spree/soft_deletable.rb