Skip to content
Browse files

Autoload StringScanner for pre-1.9 String#each_char

  • Loading branch information...
1 parent 595e033 commit 2c5c2717cb7b4116bbc4f91649e82b20cfb8a99e @jeremy jeremy committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/string/iterators.rb
View
2 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:

0 comments on commit 2c5c271

Please sign in to comment.
Something went wrong with that request. Please try again.