class ActiveRecord::Base

Public Instance Methods

t(key, options={})
Alias for: translate
translate(key, options={}) click to toggle source

Add a translate (or t) method to ActiveRecord

# File lib/annotranslate.rb, line 332
def translate(key, options={})
  AnnoTranslate.translate_with_annotation([self.class.name.underscore], @virtual_path, key, options)
end
Also aliased as: t