mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Honor the order in the new finder
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1167 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
@@ -66,6 +66,7 @@ module ActiveRecord
|
||||
end
|
||||
else
|
||||
options[:conditions] = @finder_sql + (options[:conditions] ? " AND #{options[:conditions]}" : "")
|
||||
options[:order] = options[:order] ? "#{options[:order]}, #{@options[:order]}" : @options[:order]
|
||||
@association_class.find(args.size == 1 ? args.first : args, options)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user