Module: Vpago::StoreDecorator
- Defined in:
- app/models/vpago/store_decorator.rb
Class Method Summary collapse
Class Method Details
.prepended(base) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'app/models/vpago/store_decorator.rb', line 3 def self.prepended(base) # override base.has_many :payment_methods, -> { where(vendor_id: nil) }, through: :store_payment_methods, class_name: 'Spree::PaymentMethod' base.has_many :payment_methods_including_vendor, through: :store_payment_methods, class_name: 'Spree::PaymentMethod', source: :payment_method end |