Permalink
Browse files

Add parens for MagLev

  • Loading branch information...
1 parent 09c0aa7 commit 0aa60289d26d903fbb452e81c3ba690a1544a69b @johnnyt johnnyt committed Sep 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/i18n.rb
View
@@ -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("|")})\}/
- extend Module.new {
+ extend(Module.new {
# Gets I18n configuration object.
def config
Thread.current[:i18n_config] ||= I18n::Config.new
@@ -328,5 +328,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

1 comment on commit 0aa6028

@josevalim
Collaborator

We should not push MagLev specific stuff to I18n. This is a MegLev issue, not I18n's.

Please sign in to comment.