diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-17 21:58:18 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-17 21:58:18 -0700 |
commit | 2c5c2717cb7b4116bbc4f91649e82b20cfb8a99e (patch) | |
tree | 779ae8d56c19d40dc3515349ac1df3c2e65d72fb /activesupport/lib/active_support/core_ext/string | |
parent | 595e03336f7366b5143a8af295b4e0fefbb8f294 (diff) | |
download | rails-2c5c2717cb7b4116bbc4f91649e82b20cfb8a99e.tar.gz rails-2c5c2717cb7b4116bbc4f91649e82b20cfb8a99e.tar.bz2 rails-2c5c2717cb7b4116bbc4f91649e82b20cfb8a99e.zip |
Autoload StringScanner for pre-1.9 String#each_char
Diffstat (limited to 'activesupport/lib/active_support/core_ext/string')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/iterators.rb | 2 |
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: |