Method: MongoModel::Associations::ClassMethods#has_many
- Defined in:
- lib/mongomodel/concerns/associations.rb
#has_many(name, options = {}) ⇒ Object
25 26 27 |
# File 'lib/mongomodel/concerns/associations.rb', line 25 def has_many(name, ={}) associations[name] = create_association(has_many_type(), name, ) end |