Permalink
Browse files

Autoload Multibyte features.

  • Loading branch information...
1 parent da3a228 commit 0e64eab6a27bebdaaffa1ec10bbbd80bd8d73cb9 @Manfred Manfred committed Nov 2, 2009
Showing with 7 additions and 4 deletions.
  1. +7 −4 activesupport/lib/active_support/multibyte.rb
@@ -4,6 +4,12 @@
module ActiveSupport #:nodoc:
module Multibyte
+ autoload :EncodingError, 'active_support/multibyte/exceptions'
+ autoload :Chars, 'active_support/multibyte/chars'
+ autoload :UnicodeDatabase, 'active_support/multibyte/unicode_database'
+ autoload :Codepoint, 'active_support/multibyte/unicode_database'
+ autoload :UCD, 'active_support/multibyte/unicode_database'
+
# A list of all available normalization forms. See http://www.unicode.org/reports/tr15/tr15-29.html for more
# information about normalization.
NORMALIZATION_FORMS = [:c, :kc, :d, :kd]
@@ -53,7 +59,4 @@ def self.proxy_class
end
end
-require 'active_support/multibyte/chars'
-require 'active_support/multibyte/exceptions'
-require 'active_support/multibyte/unicode_database'
-require 'active_support/multibyte/utils'
+require 'active_support/multibyte/utils'

0 comments on commit 0e64eab

Please sign in to comment.