mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-05 22:26:07 +00:00
Add VariantStock.on_demand as attribute_accessible so it can be mass assigned from product_controller_decorator.bulk_update
This commit is contained in:
@@ -16,7 +16,7 @@ module VariantStock
|
||||
extend ActiveSupport::Concern
|
||||
|
||||
included do
|
||||
attr_accessible :on_hand
|
||||
attr_accessible :on_hand, :on_demand
|
||||
after_update :save_stock
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user