Class: Spree::Admin::OptionValuesController
- Inherits:
-
ResourceController
- Object
- ApplicationController
- BaseController
- ResourceController
- Spree::Admin::OptionValuesController
- Includes:
- Translatable
- Defined in:
- app/controllers/spree/admin/option_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_pathto work.
Methods included from Translatable
Methods inherited from ResourceController
belongs_to, #create, #edit, #new, #update, #update_positions
Instance Method Details
#destroy ⇒ Object
11 12 13 14 15 |
# File 'app/controllers/spree/admin/option_values_controller.rb', line 11 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
7 8 9 |
# File 'app/controllers/spree/admin/option_values_controller.rb', line 7 def edit_admin_option_value_path(option_value) spree.edit_admin_option_type_url(option_value.option_type) end |