Sha256: 8a60d60de40f903c016135f747c9f500c222e3e5c84b418bc4ab6aacf5e274d0

Contents?: true

Size: 312 Bytes

Versions: 21

Compression:

Stored size: 312 Bytes

Contents

# frozen_string_literal: true

class Spree::StoreCreditReason < Spree::Base
  include Spree::NamedType

  has_many :store_credit_events, inverse_of: :store_credit_reason

  validates :name, presence: true, uniqueness: { case_sensitive: false, allow_blank: true }

  scope :active, -> { where(active: true) }
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
solidus_core-2.10.5 app/models/spree/store_credit_reason.rb
solidus_core-2.10.3 app/models/spree/store_credit_reason.rb
solidus_core-2.10.2 app/models/spree/store_credit_reason.rb
solidus_core-2.9.6 app/models/spree/store_credit_reason.rb
solidus_core-2.8.6 app/models/spree/store_credit_reason.rb
solidus_core-2.10.1 app/models/spree/store_credit_reason.rb
solidus_core-2.9.5 app/models/spree/store_credit_reason.rb
solidus_core-2.10.0 app/models/spree/store_credit_reason.rb
solidus_core-2.9.4 app/models/spree/store_credit_reason.rb
solidus_core-2.8.5 app/models/spree/store_credit_reason.rb
solidus_core-2.9.3 app/models/spree/store_credit_reason.rb
solidus_core-2.9.2 app/models/spree/store_credit_reason.rb
solidus_core-2.10.0.beta1 app/models/spree/store_credit_reason.rb
solidus_core-2.9.1 app/models/spree/store_credit_reason.rb
solidus_core-2.9.0 app/models/spree/store_credit_reason.rb
solidus_core-2.9.0.rc.1 app/models/spree/store_credit_reason.rb
solidus_core-2.8.4 app/models/spree/store_credit_reason.rb
solidus_core-2.8.3 app/models/spree/store_credit_reason.rb
solidus_core-2.8.2 app/models/spree/store_credit_reason.rb
solidus_core-2.8.1 app/models/spree/store_credit_reason.rb