Skip to content

Instantly share code, notes, and snippets.

@whatthewhat
Created December 9, 2013 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whatthewhat/7869243 to your computer and use it in GitHub Desktop.
Save whatthewhat/7869243 to your computer and use it in GitHub Desktop.
Debug rails i18n lookup
module I18n
class << self
def translate_with_debug(*args)
puts "Translate : #{args.inspect}"
translate_without_debug(*args)
end
alias_method_chain :translate, :debug
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment