Class: Cats::Core::LostCommoditiesController
Instance Method Summary
collapse
Methods included from Common
#create, #show, #update
#authenticate, #current_user, #skip_bullet
Instance Method Details
#index ⇒ Object
6
7
8
9
10
|
# File 'app/controllers/cats/core/lost_commodities_controller.rb', line 6
def index
super do
LostCommodity.includes(:unit).where(receipt_authorization_id: params[:id])
end
end
|
#model_params ⇒ Object
12
13
14
|
# File 'app/controllers/cats/core/lost_commodities_controller.rb', line 12
def model_params
params.require(:payload).permit(:receipt_authorization_id, :quantity, :unit_id, :remark)
end
|