Skip to content

Commit

Permalink
Ensure Dir.glob is sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Jul 11, 2011
1 parent f4858e4 commit 15438c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/paths.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def expanded
path = File.expand_path(p, @root.path) path = File.expand_path(p, @root.path)


if @glob if @glob
result.concat Dir[File.join(path, @glob)] result.concat Dir[File.join(path, @glob)].sort
else else
result << path result << path
end end
Expand Down

0 comments on commit 15438c4

Please sign in to comment.