From 5b22c54c0f38d83e7f35a39c493c558ec3efde4d Mon Sep 17 00:00:00 2001 From: benji Date: Wed, 7 Oct 2015 15:55:47 +0200 Subject: [PATCH] shallow --- app/controllers/barcodes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/barcodes_controller.rb b/app/controllers/barcodes_controller.rb index d6782a1..043b253 100644 --- a/app/controllers/barcodes_controller.rb +++ b/app/controllers/barcodes_controller.rb @@ -1,6 +1,6 @@ class BarcodesController < ApplicationController load_and_authorize_resource :product - load_and_authorize_resource :barcode, through: :product + load_and_authorize_resource :barcode, through: :product, shallow: true def create @barcode.save