Class: Admin::ShipmentsController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/admin/shipments_controller.rb

Instance Method Summary collapse

Instance Method Details

#fireObject



28
29
30
31
32
33
34
35
# File 'app/controllers/admin/shipments_controller.rb', line 28

def fire
  if @shipment.send("#{params[:e]}")
    flash.notice = t('shipment_updated')
  else
    flash[:error] = t('cannot_perform_operation')
  end
  redirect_to :back
end