Module: SolidusSubscriptions::Spree::Order::FinalizeCreatesSubscriptions

Defined in:
app/decorators/models/solidus_subscriptions/spree/order/finalize_creates_subscriptions.rb

Instance Method Summary collapse

Instance Method Details

#finalize!Object


9
10
11
12
13
14
15
# File 'app/decorators/models/solidus_subscriptions/spree/order/finalize_creates_subscriptions.rb', line 9

def finalize!
  SolidusSubscriptions::SubscriptionGenerator.group(subscription_line_items).each do |line_items|
    SolidusSubscriptions::SubscriptionGenerator.activate(line_items)
  end

  super
end