Add user product info

This commit is contained in:
2014-04-22 18:42:02 +02:00
parent 821f59b761
commit ea498cb9c5
26 changed files with 1474 additions and 105 deletions
@@ -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