mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +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
|