diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-07 20:52:57 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-07 20:52:57 -0700 |
commit | f093088433ff7e87fb387e2f2a536f0f3c4906d4 (patch) | |
tree | a88781372131c0963b8031c5bb8b74dfb7fc88ed /activesupport | |
parent | 4a5f89fa6441218dc2a1d4839f516ca841662f42 (diff) | |
download | rails-f093088433ff7e87fb387e2f2a536f0f3c4906d4.tar.gz rails-f093088433ff7e87fb387e2f2a536f0f3c4906d4.tar.bz2 rails-f093088433ff7e87fb387e2f2a536f0f3c4906d4.zip |
autoload Pathname
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/lib/active_support/core_ext/pathname.rb | 6 |
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 |