diff --git a/app/models/variant_override.rb b/app/models/variant_override.rb index f2630d98a19..38bcf640b20 100644 --- a/app/models/variant_override.rb +++ b/app/models/variant_override.rb @@ -27,7 +27,7 @@ class VariantOverride < ActiveRecord::Base localize_number :price def self.indexed(hub) - for_hubs(hub).preload(:variant).index_by(&:variant) + for_hubs(hub).includes(:variant).index_by(&:variant) end def stock_overridden?