diff --git a/lib/i18n.rb b/lib/i18n.rb index d633e2d7..bc1b8dfc 100755 --- a/lib/i18n.rb +++ b/lib/i18n.rb @@ -12,7 +12,7 @@ module I18n RESERVED_KEYS = [:scope, :default, :separator, :resolve, :object, :fallback, :format, :cascade, :throw, :raise, :rescue_format] RESERVED_KEYS_PATTERN = /%\{(#{RESERVED_KEYS.join("|")})\}/ - module Base + extend Module.new { # Gets I18n configuration object. def config Thread.current[:i18n_config] ||= I18n::Config.new @@ -326,7 +326,5 @@ def default_exception_handler(exception, locale, key, options) "(an instance of which is set to I18n.exception_handler by default)." exception.is_a?(MissingTranslation) ? exception.message : raise(exception) end - end - - extend Base + } end