From 4e8edb4aff9c271a67755d7335d45b4b8b2ad3dc Mon Sep 17 00:00:00 2001 From: Chris Berkhout <chrisberkhout@gmail.com> Date: Wed, 27 Apr 2011 18:49:06 +0800 Subject: Fixed first example in README (it was attempting to call #to_sql on an Arel::Table). --- README.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'README.markdown') 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 -- cgit v1.2.3