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