mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fixed first example in README (it was attempting to call #to_sql on an Arel::Table).
This commit is contained in:
parent
113240e0b7
commit
4e8edb4aff
1 changed files with 2 additions and 2 deletions
|
@ -26,8 +26,8 @@ Generating a query with ARel is simple. For example, in order to produce
|
|||
you construct a table relation and convert it to sql:
|
||||
|
||||
users = Arel::Table.new(:users)
|
||||
users.project(Arel.sql('*'))
|
||||
users.to_sql
|
||||
query = users.project(Arel.sql('*'))
|
||||
query.to_sql
|
||||
|
||||
### More Sophisticated Queries
|
||||
|
||||
|
|
Loading…
Reference in a new issue