Class: Spree::Admin::StripePlansController

Inherits:
ResourceController
  • Object
show all
Defined in:
app/controllers/spree/admin/stripe_plans_controller.rb

Instance Method Summary collapse

Instance Method Details

#collectionObject



10
11
12
# File 'app/controllers/spree/admin/stripe_plans_controller.rb', line 10

def collection
  super.reorder(:weightage)
end

#collection_urlObject



14
15
16
# File 'app/controllers/spree/admin/stripe_plans_controller.rb', line 14

def collection_url
  spree.admin_stripe_configuration_stripe_plans_url(@stripe_configuration)
end

#newObject



6
7
8
# File 'app/controllers/spree/admin/stripe_plans_controller.rb', line 6

def new
  @stripe_plan = @stripe_configuration.stripe_plans.build
end

#new_object_urlObject



18
19
20
# File 'app/controllers/spree/admin/stripe_plans_controller.rb', line 18

def new_object_url
  spree.new_admin_stripe_configuration_stripe_plan_url(@stripe_configuration)
end