From c5d9e8cfbda9bdac0dd4f4231d12e5eb8a1c184e Mon Sep 17 00:00:00 2001 From: Sven Fuchs Date: Sat, 15 Oct 2011 17:12:04 +0300 Subject: [PATCH] use an anonymous module here --- lib/i18n.rb | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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