Sha256: 74f37049080586f6ca083140deb3db68295bbe5be5360f400a77da8356cb1ccb
Contents?: true
Size: 542 Bytes
Versions: 1
Compression:
Stored size: 542 Bytes
Contents
# frozen_string_literal: true require 'rails/railtie' module Lite module Regulation class Railtie < ::Rails::Railtie initializer 'lite-regulation' do |app| Lite::Regulation::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lite-regulation-1.0.1 | lib/lite/regulation/railtie.rb |