mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Add table name to condition so it doesnt cause trouble in the future if mixed with other tables in the same query
This commit is contained in:
@@ -30,7 +30,7 @@ Spree::ShippingMethod.class_eval do
|
||||
}
|
||||
|
||||
scope :by_name, -> { order('spree_shipping_methods.name ASC') }
|
||||
scope :display_on_checkout, -> { where("display_on is null OR display_on = ''") }
|
||||
scope :display_on_checkout, -> { where("spree_shipping_methods.display_on is null OR spree_shipping_methods.display_on = ''") }
|
||||
|
||||
# Return the services (pickup, delivery) that different distributors provide, in the format:
|
||||
# {distributor_id => {pickup: true, delivery: false}, ...}
|
||||
|
||||
Reference in New Issue
Block a user