From f3965af649efa7e975351b2b652911674af31ee6 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 15 Jan 2005 17:03:31 +0000 Subject: Dont polute the load path more than necessary git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@415 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/lib/core_ext/hash.rb | 3 +-- activesupport/lib/core_ext/numeric.rb | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'activesupport') diff --git a/activesupport/lib/core_ext/hash.rb b/activesupport/lib/core_ext/hash.rb index 2aa7843e75..94466053ec 100644 --- a/activesupport/lib/core_ext/hash.rb +++ b/activesupport/lib/core_ext/hash.rb @@ -1,5 +1,4 @@ -$:.unshift(File.dirname(__FILE__)) -require 'hash/keys' +require File.dirname(__FILE__) + '/hash/keys' class Hash include ActiveSupport::CoreExtensions::Hash::Keys diff --git a/activesupport/lib/core_ext/numeric.rb b/activesupport/lib/core_ext/numeric.rb index ddc3d21c38..58b6f4a9d9 100644 --- a/activesupport/lib/core_ext/numeric.rb +++ b/activesupport/lib/core_ext/numeric.rb @@ -1,6 +1,5 @@ -$:.unshift(File.dirname(__FILE__)) -require 'numeric/time' -require 'numeric/bytes' +require File.dirname(__FILE__) + '/numeric/time' +require File.dirname(__FILE__) + '/numeric/bytes' class Numeric include ActiveSupport::CoreExtensions::Numeric::Time -- cgit v1.2.3