Class: ActiveResource::Associations::Builder::HasMany
- Inherits:
-
Association
- Object
- Association
- ActiveResource::Associations::Builder::HasMany
- Defined in:
- lib/active_resource/associations/builder/has_many.rb
Instance Attribute Summary
Attributes inherited from Association
#klass, #model, #name, #options
Instance Method Summary collapse
Methods inherited from Association
Constructor Details
This class inherits a constructor from ActiveResource::Associations::Builder::Association
Instance Method Details
#build ⇒ Object
7 8 9 10 11 12 |
# File 'lib/active_resource/associations/builder/has_many.rb', line 7 def build model.create_reflection(self.class.macro, name, ).tap do |reflection| model.defines_has_many_finder_method(reflection) end end |