Read files recursively.

This commit is contained in:
Martin Edenhofer 2016-01-20 01:47:38 +01:00
parent fc47f04ba8
commit 9b7b5f0069

View file

@ -1,5 +1,5 @@
# load all core_ext extentions
Dir["#{Rails.root}/lib/core_ext/*"].each {|file|
Dir.glob("#{Rails.root}/lib/core_ext/**/*").each {|file|
if File.file?(file)
require file
end