mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Remove dead code in order
These aren't used anywhere
This commit is contained in:
@@ -135,18 +135,6 @@ module Spree
|
||||
|
||||
scope :finalized, -> { where(state: FINALIZED_STATES) }
|
||||
|
||||
def self.by_number(number)
|
||||
where(number: number)
|
||||
end
|
||||
|
||||
def self.between(start_date, end_date)
|
||||
where(created_at: start_date..end_date)
|
||||
end
|
||||
|
||||
def self.by_customer(customer)
|
||||
joins(:user).where("#{Spree.user_class.table_name}.email" => customer)
|
||||
end
|
||||
|
||||
def self.by_state(state)
|
||||
where(state: state)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user