Commit 82e063b58ad7b269edfd041d7061cd76e107dad6

Authored by Rodrigo Souto
1 parent 7435e798

input: allow attributes to mass-assignment

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/models/input.rb
1 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 5 belongs_to :product
6 6 belongs_to :product_category
... ...