shallow
This commit is contained in:
parent
f0032448d5
commit
5b22c54c0f
|
@ -1,6 +1,6 @@
|
||||||
class BarcodesController < ApplicationController
|
class BarcodesController < ApplicationController
|
||||||
load_and_authorize_resource :product
|
load_and_authorize_resource :product
|
||||||
load_and_authorize_resource :barcode, through: :product
|
load_and_authorize_resource :barcode, through: :product, shallow: true
|
||||||
|
|
||||||
def create
|
def create
|
||||||
@barcode.save
|
@barcode.save
|
||||||
|
|
Loading…
Reference in a new issue