class Authlogic::I18n::Translator
The default translator used by authlogic/i18n.rb
Public Instance Methods
translate(key, options = {})
click to toggle source
If the I18n
gem is present, calls I18n.translate
passing all arguments, else returns options[:default]
.
# File lib/authlogic/i18n/translator.rb, line 9 def translate(key, options = {}) if defined?(::I18n) ::I18n.translate key, **options else options[:default] end end