Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Plugin locator: sort directory listing because we can't assume that t…

…he OS will do it for us. This fixes some unit test failures.
  • Loading branch information...
commit 011cbbc1dabfc0f3e4221180746d3008c823ca7f 1 parent ae378b9
@FooBarWidget FooBarWidget authored NZKoz committed
Showing with 1 addition and 1 deletion.
  1. +1 −1  railties/lib/rails/plugin/locator.rb
View
2  railties/lib/rails/plugin/locator.rb
@@ -63,7 +63,7 @@ def create_plugin(path)
# => <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)
Please sign in to comment.
Something went wrong with that request. Please try again.