shallow
This commit is contained in:
parent
f0032448d5
commit
5b22c54c0f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue