Class: Authlogic::I18n::Translator
- Inherits:
-
Object
- Object
- Authlogic::I18n::Translator
- Defined in:
- lib/authlogic/i18n/translator.rb
Instance Method Summary (collapse)
-
- (Object) translate(key, options = {})
If the I18n gem is present, calls I18n.translate passing all arguments, else returns options.
Instance Method Details
- (Object) translate(key, options = {})
If the I18n gem is present, calls I18n.translate passing all arguments, else returns options.
6 7 8 9 10 11 12 |
# File 'lib/authlogic/i18n/translator.rb', line 6 def translate(key, = {}) if defined?(::I18n) ::I18n.translate key, else [:default] end end |