From 82e063b58ad7b269edfd041d7061cd76e107dad6 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Mon, 7 Jul 2014 14:30:47 +0000 Subject: [PATCH] input: allow attributes to mass-assignment --- app/models/input.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/input.rb b/app/models/input.rb index 7ae373a..a8809f2 100644 --- a/app/models/input.rb +++ b/app/models/input.rb @@ -1,6 +1,6 @@ class Input < ActiveRecord::Base - attr_accessible :product, :product_category + attr_accessible :product, :product_category, :product_category_id, :amount_used, :unit_id, :price_per_unit, :relevant_to_price belongs_to :product belongs_to :product_category -- libgit2 0.21.2