mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[ci-skip] fix docs for ActiveRecord select_all
This commit is contained in:
parent
70b6cee5fd
commit
5811af5da9
1 changed files with 1 additions and 1 deletions
|
@ -1992,7 +1992,7 @@ This method will return an instance of `ActiveRecord::Result` class and calling
|
|||
object would return you an array of hashes where each hash indicates a record.
|
||||
|
||||
```irb
|
||||
irb> Customer.connection.select_all("SELECT first_name, created_at FROM customers WHERE id = '1'").to_hash
|
||||
irb> Customer.connection.select_all("SELECT first_name, created_at FROM customers WHERE id = '1'").to_a
|
||||
=> [{"first_name"=>"Rafael", "created_at"=>"2012-11-10 23:23:45.281189"}, {"first_name"=>"Eileen", "created_at"=>"2013-12-09 11:22:35.221282"}]
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue