Class: ActionMailer::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/annotranslate.rb

Instance Method Summary collapse

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, options={})
  AnnoTranslate.translate_with_annotation([self.mailer_name, self.action_name], @virtual_path, key, options)
end