Sha256: b6ae4866e2ca763fd08e9794337965712b7378520962730f03b6304a38077daa
Contents?: true
Size: 364 Bytes
Versions: 34
Compression:
Stored size: 364 Bytes
Contents
module Stringex class Railtie < ::Rails::Railtie #:nodoc: initializer "stringex" do |app| locales = app.config.i18n.available_locales pattern = locales.blank? ? "*" : "{#{locales.join(',')}}" files = Dir[File.join(Stringex::Localization::Backend::I18n::LOAD_PATH_BASE, "#{pattern}.yml")] I18n.load_path.concat(files) end end end
Version data entries
34 entries across 34 versions & 1 rubygems