Method: ActiveRecord::Base#translate
- Defined in:
- lib/annotranslate.rb
#translate(key, options = {}) ⇒ Object
Add a translate (or t) method to ActiveRecord
332 333 334 |
# File 'lib/annotranslate.rb', line 332 def translate(key, ={}) AnnoTranslate.translate_with_annotation([self.class.name.underscore], @virtual_path, key, ) end |