diff --git a/config/initializers/core_ext.rb b/config/initializers/core_ext.rb index 15097b71d..4b6e4df3e 100644 --- a/config/initializers/core_ext.rb +++ b/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