Class: Spree::Admin::OptionValuesController
- Inherits:
-
BaseController
- Object
- ApplicationController
- BaseController
- BaseController
- Spree::Admin::OptionValuesController
- Defined in:
- app/controllers/spree/admin/option_values_controller.rb
Instance Method Summary collapse
Methods included from Core::ControllerHelpers::Common
Methods included from Core::ControllerHelpers::Auth
#current_ability, included, #redirect_back_or_default, #store_location, #try_spree_current_user, #unauthorized
Instance Method Details
#destroy ⇒ Object
4 5 6 7 8 |
# File 'app/controllers/spree/admin/option_values_controller.rb', line 4 def destroy option_value = Spree::OptionValue.find(params[:id]) option_value.destroy render :text => nil end |