Browse Source

Read files recursively.

Martin Edenhofer 9 years ago
parent
commit
9b7b5f0069
1 changed files with 1 additions and 1 deletions
  1. 1 1
      config/initializers/core_ext.rb

+ 1 - 1
config/initializers/core_ext.rb

@@ -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