Skip to content

Commit

Permalink
Delegate I18n.normalize_translation_keys to I18n.normalize_keys and d…
Browse files Browse the repository at this point in the history
…eprecate it. will raise a warning in future versions and then finally be removed. Use I18n.normalize_keys instead.
  • Loading branch information
Sven Fuchs committed Feb 25, 2010
1 parent 0f4bf07 commit 7284b04
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/i18n.rb
Expand Up @@ -273,5 +273,11 @@ def handle_exception(exception, locale, key, options)
@@exception_handler.call(exception, locale, key, options)
end
end

# Deprecated. Will raise a warning in future versions and then finally be
# removed. Use I18n.normalize_keys instead.
def normalize_translation_keys(locale, key, scope, separator = nil)
normalize_keys(locale, key, scope, separator)
end
end
end

0 comments on commit 7284b04

Please sign in to comment.