Class: Spree::Admin::ProductPropertiesController

Inherits:
ResourceController show all
Defined in:
app/controllers/spree/admin/product_properties_controller.rb

Instance Method Summary collapse

Methods inherited from ResourceController

belongs_to, create, #create, destroy, #edit, #new, new_action, #update, update, #update_positions

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



14
15
16
17
18
# File 'app/controllers/spree/admin/product_properties_controller.rb', line 14

def destroy
  product_property = Spree::ProductProperty.find(params[:id])
  product_property.destroy
  render :text => nil
end