Class: Spree::Admin::ReturnAuthorizationsController
- Inherits:
-
ResourceController
- Object
- ApplicationController
- BaseController
- BaseController
- ResourceController
- Spree::Admin::ReturnAuthorizationsController
- Defined in:
- app/controllers/spree/admin/return_authorizations_controller.rb
Instance Method Summary collapse
Methods inherited from ResourceController
belongs_to, create, #create, destroy, #destroy, #edit, #new, new_action, #update, update, #update_positions
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
#fire ⇒ Object
9 10 11 12 13 |
# File 'app/controllers/spree/admin/return_authorizations_controller.rb', line 9 def fire @return_authorization.send("#{params[:e]}!") flash[:success] = t(:return_authorization_updated) respond_with(@return_authorization) { |format| format.html { redirect_to :back } } end |