Sha256: c0f32b317d04913c56f72b4e19470842ad5a0aa03ffeeb45de7a3e3637ca68d0
Contents?: true
Size: 590 Bytes
Versions: 2
Compression:
Stored size: 590 Bytes
Contents
require 'i18n_model_translator/version' module I18nModelTranslator require 'i18n_model_translator/railtie' if defined?(Rails) class << self attr_accessor :configuration end def self.configure self.configuration ||= Configuration.new yield(configuration) if block_given? end class Configuration attr_accessor :model_locale_path, :translation_source_locale, :locales def initialize @model_locale_path = 'config/locales/models' @translation_source_locale = I18n.default_locale @locales = I18n.available_locales rescue [] end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
i18n_model_translator-1.0.1 | lib/i18n_model_translator.rb |
i18n_model_translator-1.0.0 | lib/i18n_model_translator.rb |