Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

sort paths in order to define a predictable load order

  • Loading branch information...
commit caa1bc4b63d5fb5e1b2b0b3403bbe50917c182d9 1 parent 5a25aa7
Sven Fuchs authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/active_support/slices.rb
2  lib/active_support/slices.rb
View
@@ -19,7 +19,7 @@ def load(filename)
end
def register
- Dir["{#{paths.join(',')}}/**/*_slice*.rb"].each do |path|
+ Dir["{#{paths.join(',')}}/**/*_slice*.rb"].sort.each do |path|
filename = local(path).sub('_slice', '')
slices[filename] ||= []
slices[filename] << path
Please sign in to comment.
Something went wrong with that request. Please try again.