From 9b7b5f0069e0e90318187a594418dd60c80eb981 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 20 Jan 2016 01:47:38 +0100 Subject: [PATCH] Read files recursively. --- config/initializers/core_ext.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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