From 5c8be9eb864886d7ba9abba0d59786614cca2a5a Mon Sep 17 00:00:00 2001 From: Joshua Peek Date: Mon, 11 Jul 2011 16:09:46 -0700 Subject: Ensure Dir.glob is sorted --- railties/lib/rails/paths.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/lib/rails/paths.rb b/railties/lib/rails/paths.rb index 09ff0ef378..3f1d2ca87d 100644 --- a/railties/lib/rails/paths.rb +++ b/railties/lib/rails/paths.rb @@ -157,7 +157,7 @@ module Rails path = File.expand_path(p, @root.path) if @glob - result.concat Dir[File.join(path, @glob)] + result.concat Dir[File.join(path, @glob)].sort else result << path end -- cgit v1.2.3