aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2009-04-17 21:58:18 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2009-04-17 21:58:18 -0700
commit2c5c2717cb7b4116bbc4f91649e82b20cfb8a99e (patch)
tree779ae8d56c19d40dc3515349ac1df3c2e65d72fb /activesupport
parent595e03336f7366b5143a8af295b4e0fefbb8f294 (diff)
downloadrails-2c5c2717cb7b4116bbc4f91649e82b20cfb8a99e.tar.gz
rails-2c5c2717cb7b4116bbc4f91649e82b20cfb8a99e.tar.bz2
rails-2c5c2717cb7b4116bbc4f91649e82b20cfb8a99e.zip
Autoload StringScanner for pre-1.9 String#each_char
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/core_ext/string/iterators.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/iterators.rb b/activesupport/lib/active_support/core_ext/string/iterators.rb
index fe17d140ca..6ca6375fda 100644
--- a/activesupport/lib/active_support/core_ext/string/iterators.rb
+++ b/activesupport/lib/active_support/core_ext/string/iterators.rb
@@ -1,4 +1,4 @@
-require 'strscan'
+autoload :StringScanner, 'strscan' unless defined? :StringScanner
module ActiveSupport #:nodoc:
module CoreExtensions #:nodoc: