Display barcodes with api token
This commit is contained in:
parent
be2a3f1535
commit
3cebd229c9
1 changed files with 2 additions and 2 deletions
|
@ -10,8 +10,8 @@
|
|||
#
|
||||
|
||||
class BarcodesController < ApplicationController
|
||||
load_and_authorize_resource :product, only: :create
|
||||
load_and_authorize_resource :barcode, through: :product, shallow: true
|
||||
load_and_authorize_resource :product, only: :create, except: :index
|
||||
load_and_authorize_resource :barcode, through: :product, shallow: true, except: :index
|
||||
|
||||
def create
|
||||
@barcode.save
|
||||
|
|
Loading…
Reference in a new issue