mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -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:
parent
3566be4728
commit
d24c73dedb
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue