Skip to content

Commit 5afe9cb

Browse files
Merge pull request rails#46246 from higher-pixels/query-method-docs-error
Correct errors in docs for ActiveRecord::QueryMethods select method [ci-skip]
2 parents 69cd9c2 + 62fd2a9 commit 5afe9cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/relation/query_methods.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def references!(*table_names) # :nodoc:
302302
# You can also use one or more strings, which will be used unchanged as SELECT fields.
303303
#
304304
# Model.select('field AS field_one', 'other_field AS field_two')
305-
# # => [#<Model id: nil, field: "value", other_field: "value">]
305+
# # => [#<Model id: nil, field_one: "value", field_two: "value">]
306306
#
307307
# If an alias was specified, it will be accessible from the resulting objects:
308308
#

0 commit comments

Comments
 (0)