Load barcode through product
This commit is contained in:
parent
0baa857458
commit
c8b21ed1d1
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
class BarcodesController < ApplicationController
|
||||
load_and_authorize_resource :barcode, shallow: true
|
||||
load_and_authorize_resource :product
|
||||
load_and_authorize_resource :barcode, through: :product
|
||||
|
||||
def create
|
||||
@barcode.save
|
||||
|
|
Loading…
Reference in a new issue