Module: RailsCom::TranslationHelper
- Defined in:
- lib/rails_com/action_view/translation_helper.rb
Instance Method Summary collapse
Instance Method Details
#default_keys(key) ⇒ Object
9 10 11 12 13 |
# File 'lib/rails_com/action_view/translation_helper.rb', line 9 def default_keys(key) [ ['controller' + key].join('.').to_sym ] end |
#t(key, options = {}) ⇒ Object
4 5 6 7 |
# File 'lib/rails_com/action_view/translation_helper.rb', line 4 def t(key, = {}) [:default] ||= default_keys(key) super end |