Commit 82e063b58ad7b269edfd041d7061cd76e107dad6
1 parent
7435e798
Exists in
master
and in
29 other branches
input: allow attributes to mass-assignment
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/input.rb
1 | class Input < ActiveRecord::Base | 1 | class Input < ActiveRecord::Base |
2 | 2 | ||
3 | - attr_accessible :product, :product_category | 3 | + attr_accessible :product, :product_category, :product_category_id, :amount_used, :unit_id, :price_per_unit, :relevant_to_price |
4 | 4 | ||
5 | belongs_to :product | 5 | belongs_to :product |
6 | belongs_to :product_category | 6 | belongs_to :product_category |