mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
7 lines
230 B
Ruby
7 lines
230 B
Ruby
class VariantOverrideSet < ModelSet
|
|
def initialize(collection, attributes={})
|
|
super(VariantOverride, collection, attributes, nil,
|
|
proc { |attrs| attrs['price'].blank? && attrs['count_on_hand'].blank? } )
|
|
end
|
|
end
|