Sha256: d9c127635681123c5625a5ee91ff73470cbbb0e2e590326594c9a7278e9b7e45
Contents?: true
Size: 508 Bytes
Versions: 3
Compression:
Stored size: 508 Bytes
Contents
module I18nAdminUtils module Backend class ActiveRecordManager def self.save_translation(locale, key, value) translation = I18nAdminUtils::Config.translation_model.where(:locale => locale, :key => key).first if translation.nil? translation = I18nAdminUtils::Config.translation_model.new translation.locale = locale translation.key = key end translation.value = value translation.save end end end end
Version data entries
3 entries across 3 versions & 1 rubygems