Permalink
Browse files

Fixed first example in README (it was attempting to call #to_sql on a…

…n Arel::Table).
  • Loading branch information...
1 parent 113240e commit 4e8edb4aff9c271a67755d7335d45b4b8b2ad3dc @chrisberkhout chrisberkhout committed Apr 27, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.markdown
View
@@ -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

0 comments on commit 4e8edb4

Please sign in to comment.