mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
12 lines
231 B
Ruby
12 lines
231 B
Ruby
# frozen_string_literal: true
|
|
|
|
module AddressDisplay
|
|
def full_name_reverse
|
|
[lastname, firstname].reject(&:blank?).join(" ")
|
|
end
|
|
|
|
def full_name_for_sorting
|
|
[last_name, first_name].reject(&:blank?).join(", ")
|
|
end
|
|
end
|