aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/plugin/locator.rb
diff options
context:
space:
mode:
authorHongli Lai (Phusion <hongli@phusion.nl>2008-07-09 13:32:40 +0200
committerMichael Koziarski <michael@koziarski.com>2008-07-09 13:34:36 +0200
commit2b4eb586efa240dd985d8b5fe918084ab17fae2b (patch)
tree19dafcce65ac9fb94be5b4d0c95cd273e82bfdda /railties/lib/rails/plugin/locator.rb
parent91320f2a809d3a59efabd9f839fe9b879f4a9b29 (diff)
downloadrails-2b4eb586efa240dd985d8b5fe918084ab17fae2b.tar.gz
rails-2b4eb586efa240dd985d8b5fe918084ab17fae2b.tar.bz2
rails-2b4eb586efa240dd985d8b5fe918084ab17fae2b.zip
Plugin locator: sort directory listing because we can't assume that the OS will do it for us. This fixes some unit test failures.
Diffstat (limited to 'railties/lib/rails/plugin/locator.rb')
-rw-r--r--railties/lib/rails/plugin/locator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/plugin/locator.rb b/railties/lib/rails/plugin/locator.rb
index 79c07fccd1..678b295dc9 100644
--- a/railties/lib/rails/plugin/locator.rb
+++ b/railties/lib/rails/plugin/locator.rb
@@ -63,7 +63,7 @@ module Rails
# => <Rails::Plugin name: 'acts_as_chunky_bacon' ... >
#
def locate_plugins_under(base_path)
- Dir.glob(File.join(base_path, '*')).inject([]) do |plugins, path|
+ Dir.glob(File.join(base_path, '*')).sort.inject([]) do |plugins, path|
if plugin = create_plugin(path)
plugins << plugin
elsif File.directory?(path)