Module: Vpago::VariantDecorator

Defined in:
app/models/vpago/variant_decorator.rb

Class Method Summary collapse

Class Method Details

.prepended(base) ⇒ Object



3
4
5
6
7
8
9
# File 'app/models/vpago/variant_decorator.rb', line 3

def self.prepended(base)
  base.belongs_to :vendor, class_name: 'Spree::Vendor'

  base.has_many :vendor_payment_methods, class_name: 'Spree::PaymentMethod',
                                         through: :vendor,
                                         source: :payment_methods
end