Class: ActiveAny::Reflection::BelongsToReflection
- Inherits:
-
AssociationReflection
- Object
- AssociationReflection
- ActiveAny::Reflection::BelongsToReflection
- Defined in:
- lib/active_any/reflection/belongs_to_reflection.rb
Instance Attribute Summary
Attributes inherited from AssociationReflection
#name, #options, #record_class, #scope
Instance Method Summary collapse
Methods inherited from AssociationReflection
#check_preloadable!, #class_name, #collection?, #compute_class, #foreign_key, #initialize, #inverse_of, #join_keys, #klass, #marco, #primary_key, #scope_for
Constructor Details
This class inherits a constructor from ActiveAny::Reflection::AssociationReflection
Instance Method Details
#association_class ⇒ Object
6 7 8 |
# File 'lib/active_any/reflection/belongs_to_reflection.rb', line 6 def association_class Associations::BelongsToAssociation end |
#belongs_to? ⇒ Boolean
14 15 16 |
# File 'lib/active_any/reflection/belongs_to_reflection.rb', line 14 def belongs_to? true end |
#macro ⇒ Object
10 11 12 |
# File 'lib/active_any/reflection/belongs_to_reflection.rb', line 10 def macro :belongs_to end |