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

Version Path
stringex-2.8.6 lib/stringex/rails/railtie.rb
stringex-2.8.5 lib/stringex/rails/railtie.rb
stringex-2.8.4 lib/stringex/rails/railtie.rb
stringex-2.8.3 lib/stringex/rails/railtie.rb
stringex-2.8.2 lib/stringex/rails/railtie.rb
stringex-2.8.1 lib/stringex/rails/railtie.rb
stringex-2.7.1 lib/stringex/rails/railtie.rb
stringex-2.7.0 lib/stringex/rails/railtie.rb
stringex-2.6.1 lib/stringex/rails/railtie.rb
stringex-2.6.0 lib/stringex/rails/railtie.rb
stringex-2.5.2 lib/stringex/rails/railtie.rb
stringex-2.5.1 lib/stringex/rails/railtie.rb
stringex-2.5.0 lib/stringex/rails/railtie.rb
stringex-2.4.2 lib/stringex/rails/railtie.rb
stringex-2.4.1 lib/stringex/rails/railtie.rb
stringex-2.3.0 lib/stringex/rails/railtie.rb
stringex-2.2.2 lib/stringex/rails/railtie.rb
stringex-2.2.1 lib/stringex/rails/railtie.rb
stringex-2.2.0 lib/stringex/rails/railtie.rb
stringex-2.1.2 lib/stringex/rails/railtie.rb