提交 4e8edb4a 编写于 作者: C Chris Berkhout

Fixed first example in README (it was attempting to call #to_sql on an Arel::Table).

上级 113240e0
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册