Fixing attr_accessible for line_items (broken in previous commit)

This commit is contained in:
Rob Harrington
2015-09-30 15:01:40 +10:00
parent eba13a0dd7
commit 2d468f5022

View File

@@ -4,7 +4,8 @@ Spree::LineItem.class_eval do
include OpenFoodNetwork::VariantAndLineItemNaming
has_and_belongs_to_many :option_values, join_table: 'spree_option_values_line_items', class_name: 'Spree::OptionValue'
attr_accessible :max_quantity, :final_weight_volume, :price, :as => :api
attr_accessible :max_quantity, :final_weight_volume
attr_accessible :final_weight_volume, :price, :as => :api
before_create :inherit_units_from_variant
after_save :update_units