Module: SolidusSubscriptions::Spree::OrdersController::CreateSubscriptionLineItems

Includes:
SolidusSubscriptions::SubscriptionLineItemBuilder
Defined in:
app/decorators/controllers/solidus_subscriptions/spree/orders_controller/create_subscription_line_items.rb

Class Method Summary collapse

Class Method Details

.prepended(base) ⇒ Object


14
15
16
17
18
19
20
# File 'app/decorators/controllers/solidus_subscriptions/spree/orders_controller/create_subscription_line_items.rb', line 14

def self.prepended(base)
  base.after_action(
    :handle_subscription_line_items,
    only: :populate,
    if: ->{ params[:subscription_line_item] }
  )
end