Sha256: 6f6e43e645c8d7f36f8ff8cd3183b9b9ca92ee42aa05d9b30f221bfe14ec7f1e
Contents?: true
Size: 622 Bytes
Versions: 1
Compression:
Stored size: 622 Bytes
Contents
require 'active_support/core_ext/module/attribute_accessors' module I18nAdminUtils module Config class << self attr_accessor :translation_model attr_accessor :reload_translation_after_update attr_accessor :locales def reset @translation_model = 'Translation' @reload_translation_after_update = true end def translation_model if @translation_model.is_a? String @translation_model.constantize else @translation_model end end #Set the default values end reset end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
i18n_admin_utils-0.0.1 | lib/i18n_admin_utils/config.rb |