This commit is contained in:
benji 2015-10-07 15:55:47 +02:00
parent f0032448d5
commit 5b22c54c0f

View file

@ -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