Created
January 3, 2013 17:31
-
-
Save squidarth/4445184 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module I18n | |
module Registry | |
protected | |
def lookup(locale, key, scope = [], options = {}) | |
@log ||= Logger.new(File.join(Rails.root, 'log', 'i18n_registry.log')) | |
@log.info key | |
super | |
end | |
end | |
end | |
I18n::Backend::Simple.send :include, I18n::Registry |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment