diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-15 17:03:31 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-15 17:03:31 +0000 |
commit | f3965af649efa7e975351b2b652911674af31ee6 (patch) | |
tree | 0a803c798cfacbd10f1248d2d58fa8a555df3911 /activesupport | |
parent | a66b321bb022836709b0a55ba1c4a693beee286a (diff) | |
download | rails-f3965af649efa7e975351b2b652911674af31ee6.tar.gz rails-f3965af649efa7e975351b2b652911674af31ee6.tar.bz2 rails-f3965af649efa7e975351b2b652911674af31ee6.zip |
Dont polute the load path more than necessary
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@415 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/core_ext/hash.rb | 3 | ||||
-rw-r--r-- | activesupport/lib/core_ext/numeric.rb | 5 |
2 files changed, 3 insertions, 5 deletions
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 |