Add VariantStock.on_demand as attribute_accessible so it can be mass assigned from product_controller_decorator.bulk_update

This commit is contained in:
luisramos0
2018-11-23 11:46:30 +00:00
parent 0237432ba4
commit 6cdaaa9e7d

View File

@@ -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