Rename VariantOverride.use_producer_settings to VariantOverride.use_producer_stock_settings

This commit is contained in:
luisramos0
2019-02-22 09:41:25 +00:00
parent 45e5fed609
commit 0b1ea1beda
2 changed files with 2 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ class VariantOverride < ActiveRecord::Base
count_on_hand.present?
end
def use_producer_settings?
def use_producer_stock_settings?
on_demand.nil?
end

View File

@@ -37,7 +37,7 @@ module OpenFoodNetwork
end
def on_demand
if @variant_override.present? && !@variant_override.use_producer_settings?
if @variant_override.present? && !@variant_override.use_producer_stock_settings?
@variant_override.on_demand
else
super