Sha256: ca3f4b986df3db16e1b587256e183674c641de032a248e38dc8f2c20b0a6b9cd

Contents?: true

Size: 383 Bytes

Versions: 33

Compression:

Stored size: 383 Bytes

Contents

module Spree
  class StorePaymentMethod < Spree::Base
    self.table_name = 'spree_payment_methods_stores'

    belongs_to :store, class_name: 'Spree::Store', touch: true
    belongs_to :payment_method, class_name: 'Spree::PaymentMethod', touch: true

    validates :store, :payment_method, presence: true
    validates :store_id, uniqueness: { scope: :payment_method_id }
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
spree_core-4.10.1 app/models/spree/store_payment_method.rb
spree_core-4.10.0 app/models/spree/store_payment_method.rb
spree_core-4.9.0 app/models/spree/store_payment_method.rb
spree_core-4.8.3 app/models/spree/store_payment_method.rb
spree_core-4.8.2 app/models/spree/store_payment_method.rb
spree_core-4.7.3 app/models/spree/store_payment_method.rb
spree_core-4.6.6 app/models/spree/store_payment_method.rb
spree_core-4.5.5 app/models/spree/store_payment_method.rb
spree_core-4.3.3 app/models/spree/store_payment_method.rb
spree_core-4.4.1 app/models/spree/store_payment_method.rb
spree_core-4.5.4 app/models/spree/store_payment_method.rb
spree_core-4.6.5 app/models/spree/store_payment_method.rb
spree_core-4.7.2 app/models/spree/store_payment_method.rb
spree_core-4.7.1 app/models/spree/store_payment_method.rb
spree_core-4.6.4 app/models/spree/store_payment_method.rb
spree_core-4.7.0 app/models/spree/store_payment_method.rb
spree_core-4.6.3 app/models/spree/store_payment_method.rb
spree_core-4.6.2 app/models/spree/store_payment_method.rb
spree_core-4.6.1 app/models/spree/store_payment_method.rb
spree_core-4.6.0 app/models/spree/store_payment_method.rb