Module: Vpago::VendorDecorator

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

Class Method Summary collapse

Class Method Details

.prepended(base) ⇒ Object



3
4
5
6
# File 'app/models/vpago/vendor_decorator.rb', line 3

def self.prepended(base)
  base.has_many :payout_profiles, class_name: 'Spree::PayoutProfile', inverse_of: :vendor
  base.has_many :payment_methods, class_name: 'Spree::PaymentMethod', inverse_of: :vendor
end