Permalink
Browse files

sort paths in order to define a predictable load order

  • Loading branch information...
1 parent 5a25aa7 commit caa1bc4b63d5fb5e1b2b0b3403bbe50917c182d9 Sven Fuchs committed Jan 18, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/active_support/slices.rb
@@ -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

0 comments on commit caa1bc4

Please sign in to comment.