mirror of
https://github.com/github/rails.git
synced 2026-01-28 07:48:00 -05:00
Plugin locator: sort directory listing because we can't assume that the OS will do it for us. This fixes some unit test failures.
This commit is contained in:
committed by
Michael Koziarski
parent
91320f2a80
commit
2b4eb586ef
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user