Module: NoBrainer::Document::Association
- Extended by:
- ActiveSupport::Concern, Autoload
- Defined in:
- lib/no_brainer/document/association.rb
Defined Under Namespace
Modules: ClassMethods, Core, EagerLoader Classes: BelongsTo, HasMany, HasManyThrough, HasOne, HasOneThrough
Constant Summary collapse
- METHODS =
[:belongs_to, :has_many, :has_one]
Instance Method Summary collapse
Methods included from Autoload
autoload, autoload_and_include, eager_autoload, eager_load!, extended
Instance Method Details
#associations ⇒ Object
14 15 16 |
# File 'lib/no_brainer/document/association.rb', line 14 def associations @associations ||= Hash.new { |h, | h[] = .new(self) } end |