Class: ActionController::Base

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

Instance Method Summary collapse

Instance Method Details

#translate_with_annotation(key, options = {}) ⇒ Object

Add a translate (or t) method to ActionController



319
320
321
# File 'lib/annotranslate.rb', line 319

def translate_with_annotation(key, options={})
  AnnoTranslate.translate_with_annotation([self.controller_name, self.action_name], @virtual_path, key, options)
end