Skip to content

Commit 9ddb9e2

Browse files
committed
Fix documentation
This method still returns string keys.
1 parent e74dc16 commit 9ddb9e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/reflection.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def reflect_on_aggregation(aggregation)
7373

7474
# Returns a Hash of name of the reflection as the key and an AssociationReflection as the value.
7575
#
76-
# Account.reflections # => {balance: => AggregateReflection}
76+
# Account.reflections # => {"balance" => AggregateReflection}
7777
#
7878
def reflections
7979
normalized_reflections.stringify_keys

0 commit comments

Comments
 (0)