Class: Spree::Admin::ReturnAuthorizationsController

Inherits:
ResourceController show all
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

included

Methods included from Core::ControllerHelpers::Auth

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

Instance Method Details

#fireObject



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