Module: Mongoid::Association::Reflections
Relationships & Source Files | |
Namespace Children | |
Modules:
| |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
ActiveSupport::Concern
|
|
Defined in: | lib/mongoid/association/reflections.rb |
Overview
The reflections module provides convenience methods that can retrieve useful information about associations.
Instance Method Summary
-
#reflect_on_all_association(*macros) ⇒ Array<Mongoid::Association::Relatable>
Returns all association metadata for the supplied macros.
-
#reflect_on_association(name) ⇒ Mongoid::Association::Relatable
Returns the association metadata for the supplied name.
Instance Method Details
#reflect_on_all_association(*macros) ⇒ Array<Mongoid::Association::Relatable>
Returns all association metadata for the supplied macros.
# File 'lib/mongoid/association/reflections.rb', line 32
def reflect_on_all_association(*macros) self.class.reflect_on_all_associations(*macros) end
#reflect_on_association(name) ⇒ Mongoid::Association::Relatable
Returns the association metadata for the supplied name.
# File 'lib/mongoid/association/reflections.rb', line 20
def reflect_on_association(name) self.class.reflect_on_association(name) end