We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 69cd9c2 + 62fd2a9 commit 5afe9cbCopy full SHA for 5afe9cb
activerecord/lib/active_record/relation/query_methods.rb
@@ -302,7 +302,7 @@ def references!(*table_names) # :nodoc:
302
# You can also use one or more strings, which will be used unchanged as SELECT fields.
303
#
304
# Model.select('field AS field_one', 'other_field AS field_two')
305
- # # => [#<Model id: nil, field: "value", other_field: "value">]
+ # # => [#<Model id: nil, field_one: "value", field_two: "value">]
306
307
# If an alias was specified, it will be accessible from the resulting objects:
308
0 commit comments