Module: SolidusSubscriptions::Spree::Product::DelegateSubscribable

Defined in:
app/decorators/models/solidus_subscriptions/spree/product/delegate_subscribable.rb

Class Method Summary collapse

Class Method Details

.prepended(base) ⇒ Object



7
8
9
10
11
# File 'app/decorators/models/solidus_subscriptions/spree/product/delegate_subscribable.rb', line 7

def self.prepended(base)
  base.class_eval do
    delegate :subscribable, :subscribable=, to: :find_or_build_master
  end
end