diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-08-21 22:11:14 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-08-21 22:11:14 +0000 |
commit | d24c73dedb681551b7e48d3aa4c79d84df089b85 (patch) | |
tree | 1aedd6aad6bda80443513c94d2ecd35af79a658e /activerecord | |
parent | 3566be47284053c8c7ea96bc361524147d4d1441 (diff) | |
download | rails-d24c73dedb681551b7e48d3aa4c79d84df089b85.tar.gz rails-d24c73dedb681551b7e48d3aa4c79d84df089b85.tar.bz2 rails-d24c73dedb681551b7e48d3aa4c79d84df089b85.zip |
Fix spacing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7356 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 2 | ||||
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/oracle_adapter.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 2ffe3690ef..0bedffa0e1 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -294,7 +294,7 @@ module ActiveRecord # ORDER BY clause for the passed order option. # PostgreSQL overrides this due to its stricter standards compliance. def add_order_by_for_association_limiting!(sql, options) - sql << "ORDER BY #{options[:order]}" + sql << " ORDER BY #{options[:order]}" end protected diff --git a/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb b/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb index 8add5faf47..701d8f6c27 100644 --- a/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/oracle_adapter.rb @@ -505,7 +505,7 @@ begin order.map! {|s| $1 if s =~ / (.*)/} order = order.zip((0...order.size).to_a).map { |s,i| "alias_#{i}__ #{s}" }.join(', ') - sql << "ORDER BY #{order}" + sql << " ORDER BY #{order}" end private |