aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-04-07 20:52:57 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-04-07 20:52:57 -0700
commitf093088433ff7e87fb387e2f2a536f0f3c4906d4 (patch)
treea88781372131c0963b8031c5bb8b74dfb7fc88ed /activesupport/lib
parent4a5f89fa6441218dc2a1d4839f516ca841662f42 (diff)
downloadrails-f093088433ff7e87fb387e2f2a536f0f3c4906d4.tar.gz
rails-f093088433ff7e87fb387e2f2a536f0f3c4906d4.tar.bz2
rails-f093088433ff7e87fb387e2f2a536f0f3c4906d4.zip
autoload Pathname
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/core_ext/pathname.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/pathname.rb b/activesupport/lib/active_support/core_ext/pathname.rb
index 517c3b972b..04862aea45 100644
--- a/activesupport/lib/active_support/core_ext/pathname.rb
+++ b/activesupport/lib/active_support/core_ext/pathname.rb
@@ -1 +1,5 @@
-require 'active_support/core_ext/pathname/clean_within'
+if defined? Pathname
+ require 'active_support/core_ext/pathname/clean_within'
+else
+ autoload :Pathname, 'active_support/core_ext/pathname/clean_within'
+end