Sha256: cbc1e4de911bda3b34e46c249f3d113e4aa5b5b8df5a54ebc2d449cb64ab8242
Contents?: true
Size: 371 Bytes
Versions: 3
Compression:
Stored size: 371 Bytes
Contents
module Comable module ShipmentAction private # orderride OrdersController#order_params def order_params return super unless params[:state] == 'shipment' order_params_for_shipment end def order_params_for_shipment params.fetch(:order, {}).permit( shipments_attributes: [:id, :shipment_method_id] ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems