diff options
author | Chris Berkhout <chrisberkhout@gmail.com> | 2011-04-27 18:49:06 +0800 |
---|---|---|
committer | Chris Berkhout <chrisberkhout@gmail.com> | 2011-04-27 18:49:06 +0800 |
commit | 4e8edb4aff9c271a67755d7335d45b4b8b2ad3dc (patch) | |
tree | 79d1bd30fc8a75d05369a7aba659c941afee7d15 /README.markdown | |
parent | 113240e0b75e53b41e3d0837ec53ec594bcd9a28 (diff) | |
download | rails-4e8edb4aff9c271a67755d7335d45b4b8b2ad3dc.tar.gz rails-4e8edb4aff9c271a67755d7335d45b4b8b2ad3dc.tar.bz2 rails-4e8edb4aff9c271a67755d7335d45b4b8b2ad3dc.zip |
Fixed first example in README (it was attempting to call #to_sql on an Arel::Table).
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/README.markdown b/README.markdown index eaefe2d694..eb6426b1ec 100644 --- a/README.markdown +++ b/README.markdown @@ -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 |