Class: ActionMailer::Base
- Inherits:
-
Object
- Object
- ActionMailer::Base
- Defined in:
- lib/annotranslate.rb
Instance Method Summary collapse
-
#translate(key, options = {}) ⇒ Object
(also: #t)
Add a
translate
(ort
) method to ActionMailer.
Instance Method Details
#translate(key, options = {}) ⇒ Object Also known as: t
Add a translate
(or t
) method to ActionMailer
354 355 356 |
# File 'lib/annotranslate.rb', line 354 def translate(key, ={}) AnnoTranslate.translate_with_annotation([self.mailer_name, self.action_name], @virtual_path, key, ) end |