Permalink
Browse files

autoload Pathname

  • Loading branch information...
1 parent 4a5f89f commit f093088433ff7e87fb387e2f2a536f0f3c4906d4 @jeremy jeremy committed Apr 8, 2009
Showing with 5 additions and 1 deletion.
  1. +5 −1 activesupport/lib/active_support/core_ext/pathname.rb
View
6 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

0 comments on commit f093088

Please sign in to comment.