Sha256: 11f9a8a4556a5b65d22785ecab8c954dd713d96be41fa33f2b1e99f5045abc9f
Contents?: true
Size: 545 Bytes
Versions: 2
Compression:
Stored size: 545 Bytes
Contents
# frozen_string_literal: true require 'rails/railtie' module Lite module Regulations class Railtie < ::Rails::Railtie initializer 'lite-regulations' do |app| Lite::Regulations::Railtie.instance_eval do [app.config.i18n.available_locales].flatten.each do |locale| path = File.expand_path("../../../config/locales/#{locale}.yml", __FILE__) next if !File.file?(path) || I18n.load_path.include?(path) I18n.load_path << path end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lite-regulations-1.1.0 | lib/lite/regulations/railtie.rb |
lite-regulations-1.0.0 | lib/lite/regulations/railtie.rb |