From 9c025ab6e9731dde56186b41ba5d4f216a48c831 Mon Sep 17 00:00:00 2001 From: Intrepidd Date: Wed, 20 Mar 2013 18:24:48 +0000 Subject: Tidying up some require : removing useless sort and homogenizing with the rest of the code the wat the includes are done --- activesupport/lib/active_support/core_ext.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activesupport/lib/active_support/core_ext.rb') diff --git a/activesupport/lib/active_support/core_ext.rb b/activesupport/lib/active_support/core_ext.rb index b48bdf08e8..998a59c618 100644 --- a/activesupport/lib/active_support/core_ext.rb +++ b/activesupport/lib/active_support/core_ext.rb @@ -1,4 +1,4 @@ -Dir["#{File.dirname(__FILE__)}/core_ext/*.rb"].sort.each do |path| +Dir["#{File.dirname(__FILE__)}/core_ext/*.rb"].each do |path| next if File.basename(path, '.rb') == 'logger' - require "active_support/core_ext/#{File.basename(path, '.rb')}" + require path end -- cgit v1.2.3