Extension for the Product-Inventory association
checks if an Inventory-Objects exists, which is associated with the given properties
[Source]
# File lib/opensteam/base.rb, line 35 35: def exist_by_properties?( p ) 36: collect(&:properties).collect(&:sort).include?( p.kind_of?( Array ) ? p.sort : p ) 37: end
[Validate]