Class: ActionController::Base
- Inherits:
-
Object
- Object
- ActionController::Base
- Defined in:
- lib/annotranslate.rb
Instance Method Summary collapse
-
#translate_with_annotation(key, options = {}) ⇒ Object
Add a
translate(ort) method to ActionController.
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, ={}) AnnoTranslate.translate_with_annotation([self.controller_name, self.action_name], @virtual_path, key, ) end |