Skip to content

Commit

Permalink
undo c5d9e8c
Browse files Browse the repository at this point in the history
This is so that I18n.translate will be available on rdoc
  • Loading branch information
radar committed Nov 16, 2016
1 parent 94e7704 commit bc926eb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/i18n.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module I18n
RESERVED_KEYS = [:scope, :default, :separator, :resolve, :object, :fallback, :format, :cascade, :throw, :raise, :deep_interpolation]
RESERVED_KEYS_PATTERN = /%\{(#{RESERVED_KEYS.join("|")})\}/

extend(Module.new {
module Base
# Gets I18n configuration object.
def config
Thread.current[:i18n_config] ||= I18n::Config.new
Expand Down Expand Up @@ -337,5 +337,7 @@ def normalize_key(key, separator)
def normalized_key_cache
@normalized_key_cache ||= Hash.new { |h,k| h[k] = {} }
end
})
end

extend Base
end

0 comments on commit bc926eb

Please sign in to comment.