module ActiverecordI18n::Helper

Public Class Methods

ot(key, default_value=nil) click to toggle source
# File lib/activerecord_i18n/helper.rb, line 3
def self.ot(key, default_value=nil)
  return ActiverecordI18n.get_translation(key, default_value)
end

Public Instance Methods

ot(key, default_value=nil) click to toggle source
# File lib/activerecord_i18n/helper.rb, line 7
def ot(key, default_value=nil)
  return ActiverecordI18n.get_translation(key, default_value, @current_template || nil)
end