mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-02 02:11:33 +00:00
12 lines
243 B
Ruby
12 lines
243 B
Ruby
# frozen_string_literal: true
|
|
|
|
module OpenFoodNetwork
|
|
class PropertyMerge
|
|
def self.merge(primary, secondary)
|
|
(primary + secondary).uniq do |property_object|
|
|
property_object.property.presentation
|
|
end
|
|
end
|
|
end
|
|
end
|