Method: DuckRecord::Associations::ClassMethods#has_many

Defined in:
lib/duck_record/associations.rb

#has_many(name, scope = nil, options = {}, &extension) ⇒ Object



124
125
126
127
# File 'lib/duck_record/associations.rb', line 124

def has_many(name, scope = nil, options = {}, &extension)
  reflection = Builder::HasMany.build(self, name, scope, options, &extension)
  Reflection.add_reflection self, name, reflection
end