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