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