Module: Mongoid::Association::Reflections
- Extended by:
- ActiveSupport::Concern
- Included in:
- Mongoid::Association
- Defined in:
- lib/mongoid/association/reflections.rb
Overview
The reflections module provides convenience methods that can retrieve useful information about associations.
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#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.
32 33 34 |
# 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.
20 21 22 |
# File 'lib/mongoid/association/reflections.rb', line 20 def reflect_on_association(name) self.class.reflect_on_association(name) end |