Class: Associationist::Reflection::CollectionReflection
- Inherits:
-
ActiveRecord::Reflection::HasManyReflection
- Object
- ActiveRecord::Reflection::HasManyReflection
- Associationist::Reflection::CollectionReflection
- Defined in:
- lib/associationist/reflection/collection_reflection.rb
Instance Method Summary collapse
- #association_class ⇒ Object
- #check_eager_loadable! ⇒ Object
- #config ⇒ Object
- #has_cached_counter? ⇒ Boolean
Instance Method Details
#association_class ⇒ Object
4 5 6 |
# File 'lib/associationist/reflection/collection_reflection.rb', line 4 def association_class Associations::CollectionAssociation end |
#check_eager_loadable! ⇒ Object
8 9 10 |
# File 'lib/associationist/reflection/collection_reflection.rb', line 8 def check_eager_loadable! raise "Virtual associations cannot be eager-loaded." end |
#config ⇒ Object
16 17 18 |
# File 'lib/associationist/reflection/collection_reflection.rb', line 16 def config [:associationist] end |
#has_cached_counter? ⇒ Boolean
12 13 14 |
# File 'lib/associationist/reflection/collection_reflection.rb', line 12 def has_cached_counter? false end |