Class: Spree::Transit::AmenityValuesController
- Inherits:
-
BaseController
- Object
- Admin::ResourceController
- BaseController
- Spree::Transit::AmenityValuesController
- Defined in:
- app/controllers/spree/transit/amenity_values_controller.rb
Instance Method Summary collapse
- #destroy ⇒ Object
-
#edit_admin_option_value_path(option_value) ⇒ Object
This method is added here to allow ‘edit_polymorphic_path` to work.
Methods inherited from BaseController
#collection_url, #current_vendor, #edit_object_url, #page, #per_page, #required_vendor_user!, #vendors
Instance Method Details
#destroy ⇒ Object
9 10 11 12 13 |
# File 'app/controllers/spree/transit/amenity_values_controller.rb', line 9 def destroy option_value = Spree::OptionValue.find(params[:id]) option_value.destroy render plain: nil end |
#edit_admin_option_value_path(option_value) ⇒ Object
This method is added here to allow ‘edit_polymorphic_path` to work
5 6 7 |
# File 'app/controllers/spree/transit/amenity_values_controller.rb', line 5 def edit_admin_option_value_path(option_value) spree.edit_admin_option_type_url(option_value.option_type) end |