mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-02 21:57:17 +00:00
Rename VariantOverride.use_producer_settings to VariantOverride.use_producer_stock_settings
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user