Class: Admin::ShipmentsController
- Inherits:
-
BaseController
- Object
- BaseController
- Admin::ShipmentsController
- Defined in:
- app/controllers/admin/shipments_controller.rb
Instance Method Summary collapse
Instance Method Details
#fire ⇒ Object
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 |