mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[ci skip] ActiveRecord::Querying-find_by_sql-documentation-fix
This commit is contained in:
parent
5d7f151fcf
commit
09ddc083d8
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ module ActiveRecord
|
|||
#
|
||||
# # A simple SQL query spanning multiple tables
|
||||
# Post.find_by_sql "SELECT p.title, c.author FROM posts p, comments c WHERE p.id = c.post_id"
|
||||
# # => [#<Post:0x36bff9c @attributes={"title"=>"Ruby Meetup", "first_name"=>"Quentin"}>, ...]
|
||||
# # => [#<Post:0x36bff9c @attributes={"title"=>"Ruby Meetup", "author"=>"Quentin"}>, ...]
|
||||
#
|
||||
# You can use the same string replacement techniques as you can with <tt>ActiveRecord::QueryMethods#where</tt>:
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue