mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Fixing attr_accessible for line_items (broken in previous commit)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user