Sha256: 875d4c3327c2c247e0922fa6f3b5cb98e5740e59d082c0e373d7ec450857156e

Contents?: true

Size: 255 Bytes

Versions: 60

Compression:

Stored size: 255 Bytes

Contents

# frozen_string_literal: true

require 'discard'

module Ibrain
  module SoftDeletable
    extend ActiveSupport::Concern

    included do
      include Discard::Model
      self.discard_column = :deleted_at

      default_scope { kept }
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
ibrain-core-0.5.15 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.5.13 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.5.12 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.5.10 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.5.9 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.5.8 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.5.7 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.5.6 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.5.5 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.5.4 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.5.3 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.5.2 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.5.1 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.5.0 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.4.9 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.4.8 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.4.7 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.4.5 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.4.4 app/models/concerns/ibrain/soft_deletable.rb
ibrain-core-0.4.3 app/models/concerns/ibrain/soft_deletable.rb