Class: Spree::Admin::OptionValuesController

Inherits:
BaseController show all
Defined in:
app/controllers/spree/admin/option_values_controller.rb

Instance Method Summary collapse

Methods included from Core::ControllerHelpers::Common

included

Methods included from Core::ControllerHelpers::Auth

#current_ability, included, #redirect_back_or_default, #store_location, #try_spree_current_user, #unauthorized

Instance Method Details

#destroyObject



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