Method: Effective::SubscriptionsController#new
- Defined in:
- app/controllers/effective/subscriptions_controller.rb
#new ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'app/controllers/effective/subscriptions_controller.rb', line 20 def new @page_title ||= 'New Subscription' @subscription = @customer.subscriptions.new() purchased_plans = @customer.subscriptions.purchased.map(&:stripe_plan_id) @plans = Stripe::Plan.all.reject { |stripe_plan| purchased_plans.include?(stripe_plan.id) } EffectiveOrders.(self, :new, @subscription) end |