Class: SeoSensei::Lookups::DefaultTranslation
- Inherits:
-
Object
- Object
- SeoSensei::Lookups::DefaultTranslation
- Defined in:
- lib/seo_sensei/lookups/default_translation.rb
Class Method Summary collapse
Class Method Details
.call ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/seo_sensei/lookups/default_translation.rb', line 4 def self.call translation_key = [ SeoSensei.configuration.translation_key.to_s, 'default' ].join('.') return unless I18n.exists?(translation_key) I18n.t(translation_key) end |