diff options
Diffstat (limited to 'activesupport/lib/active_support/core_ext.rb')
-rw-r--r-- | activesupport/lib/active_support/core_ext.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext.rb b/activesupport/lib/active_support/core_ext.rb index cb43160bda..4deef8c7a5 100644 --- a/activesupport/lib/active_support/core_ext.rb +++ b/activesupport/lib/active_support/core_ext.rb @@ -1 +1,4 @@ -Dir[File.dirname(__FILE__) + "/core_ext/*.rb"].sort.each { |file| require(file) } +Dir[File.dirname(__FILE__) + "/core_ext/*.rb"].sort.each do |path| + filename = File.basename(path) + require "active_support/core_ext/#{filename}" +end |