Add user product info
This commit is contained in:
@@ -95,7 +95,7 @@ module Suppliers
|
||||
private
|
||||
|
||||
def product_params
|
||||
params.require(:product).permit(:name, :code, :price, product_category_ids: [])
|
||||
params.require(:product).permit(:name, :code, :price, :description, product_category_ids: [])
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
module Users
|
||||
class ApplicationController < ::ApplicationController
|
||||
before_action :user_authentication, :unless => ->(c){ %w(obtain_token).include?(c.action_name) || c.request.format.symbol == :html } # , except: [:obtain_token, :index]
|
||||
|
||||
private
|
||||
|
||||
def user_authentication
|
||||
|
||||
Reference in New Issue
Block a user