From f093088433ff7e87fb387e2f2a536f0f3c4906d4 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Tue, 7 Apr 2009 20:52:57 -0700 Subject: autoload Pathname --- activesupport/lib/active_support/core_ext/pathname.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'activesupport') 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 -- cgit v1.2.3