diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2009-09-30 23:36:06 -0400 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2009-09-30 23:36:06 -0400 |
commit | 2824d7c2ad958679ec018cf15c06cc8008d7f193 (patch) | |
tree | 4c93001f4f4b94f0061d4a1d82dbce4f28ac7c28 /lib/arel/engines | |
parent | 71d65b7571d5ff01e0de3c08a9396dc1e1386118 (diff) | |
download | rails-2824d7c2ad958679ec018cf15c06cc8008d7f193.tar.gz rails-2824d7c2ad958679ec018cf15c06cc8008d7f193.tar.bz2 rails-2824d7c2ad958679ec018cf15c06cc8008d7f193.zip |
Whitespace
Diffstat (limited to 'lib/arel/engines')
-rw-r--r-- | lib/arel/engines/sql/relations/relation.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/arel/engines/sql/relations/relation.rb b/lib/arel/engines/sql/relations/relation.rb index ed7f19ddbd..2edbe6a5f7 100644 --- a/lib/arel/engines/sql/relations/relation.rb +++ b/lib/arel/engines/sql/relations/relation.rb @@ -25,15 +25,15 @@ module Arel ("OFFSET #{skipped}" unless skipped.blank? ) else - build_query \ - "SELECT #{select_clauses.join(', ')}", - "FROM #{table_sql(Sql::TableReference.new(self))}", - (joins(self) unless joins(self).blank? ), - ("WHERE #{where_clauses.join("\n\tAND ")}" unless wheres.blank? ), - ("GROUP BY #{group_clauses.join(', ')}" unless groupings.blank? ), - ("ORDER BY #{order_clauses.join(', ')}" unless orders.blank? ), - ("LIMIT #{taken}" unless taken.blank? ), - ("OFFSET #{skipped}" unless skipped.blank? ) + build_query \ + "SELECT #{select_clauses.join(', ')}", + "FROM #{table_sql(Sql::TableReference.new(self))}", + (joins(self) unless joins(self).blank? ), + ("WHERE #{where_clauses.join("\n\tAND ")}" unless wheres.blank? ), + ("GROUP BY #{group_clauses.join(', ')}" unless groupings.blank? ), + ("ORDER BY #{order_clauses.join(', ')}" unless orders.blank? ), + ("LIMIT #{taken}" unless taken.blank? ), + ("OFFSET #{skipped}" unless skipped.blank? ) end end |