Sha256: de5042e3ce0897f4c9a2d5187ae0a43b794e0cc45610c3226168a20bad277b58
Contents?: true
Size: 364 Bytes
Versions: 30
Compression:
Stored size: 364 Bytes
Contents
module Authlogic module I18n class Translator # If the I18n gem is present, calls +I18n.translate+ passing all # arguments, else returns +options[:default]+. def translate(key, options = {}) if defined?(::I18n) ::I18n.translate key, options else options[:default] end end end end end
Version data entries
30 entries across 30 versions & 2 rubygems