Method: ROM::AssociationSet#initialize
- Defined in:
- lib/rom/association_set.rb
#initialize ⇒ AssociationSet
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of AssociationSet.
10 11 12 13 14 15 16 17 |
# File 'lib/rom/association_set.rb', line 10 def initialize(*) super elements.values.each do |assoc| if assoc.aliased? && !key?(assoc.name) elements[assoc.name] = assoc end end end |