Sorting libraries before require to avoid load order issues on server

This commit is contained in:
Ismael Celis 2008-06-02 12:50:33 +01:00
parent e6aff6d37c
commit 2c61102f1b

View File

@ -1,3 +1,3 @@
Dir[File.join(File.dirname(__FILE__), "core", "*.rb")].each do |file| Dir[File.join(File.dirname(__FILE__), "core", "*.rb")].sort.each do |file|
require File.expand_path(file) require File.expand_path(file)
end end