Class: Spree::Admin::ActiveSaleEventsController
- Inherits:
-
ResourceController
- Object
- ResourceController
- Spree::Admin::ActiveSaleEventsController
- Defined in:
- app/controllers/spree/admin/active_sale_events_controller.rb
Instance Method Summary collapse
Instance Method Details
#destroy ⇒ Object
14 15 16 17 18 |
# File 'app/controllers/spree/admin/active_sale_events_controller.rb', line 14 def destroy @active_sale_event = Spree::ActiveSaleEvent.find(params[:id]) @active_sale_event.destroy respond_with(@active_sale_event) { |format| format.json { render :json => '' } } end |
#show ⇒ Object
10 11 12 |
# File 'app/controllers/spree/admin/active_sale_events_controller.rb', line 10 def show redirect_to( :action => :edit ) end |
#update_events ⇒ Object
20 21 22 23 |
# File 'app/controllers/spree/admin/active_sale_events_controller.rb', line 20 def update_events @active_sale_event.update_attributes(params[:active_sale_event]) respond_with(@active_sale_event) end |