instance method
reflections
Ruby on Rails 7.2.3
Since v2.2.3Signature
reflections()
Returns a Hash of name of the reflection as the key and an AssociationReflection as the value.
Account.reflections # => {"balance" => AggregateReflection}
Source
# File activerecord/lib/active_record/reflection.rb, line 78
def reflections
normalized_reflections.stringify_keys
end
Defined in activerecord/lib/active_record/reflection.rb line 78
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Reflection::ClassMethods