Module: Model::HasMany::ClassMethods
- Defined in:
- app/models/concerns/model/has_many.rb
Instance Method Summary collapse
Instance Method Details
#has_many(name, options = {}) ⇒ Object
120 121 122 123 124 |
# File 'app/models/concerns/model/has_many.rb', line 120 def has_many(name, = {}) (self.associations_registry ||= {})[name] = :has_many Association.new self, name, end |