mirror of
https://github.com/github/rails.git
synced 2026-01-30 00:38:00 -05:00
Fix spacing
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7356 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user