Class: Spree::Admin::StripePlansController
- Inherits:
-
ResourceController
- Object
- ResourceController
- Spree::Admin::StripePlansController
- Defined in:
- app/controllers/spree/admin/stripe_plans_controller.rb
Instance Method Summary collapse
Instance Method Details
#collection ⇒ Object
10 11 12 |
# File 'app/controllers/spree/admin/stripe_plans_controller.rb', line 10 def collection super.reorder(:weightage) end |
#collection_url ⇒ Object
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 |
#new ⇒ Object
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_url ⇒ Object
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 |