aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/core_ext/hash.rb3
-rw-r--r--activesupport/lib/core_ext/numeric.rb5
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