Sha256: 2477988d1001af87cb5ea77c0ef3eb6a2b754f64dfbdca94a20fdba32e608f85
Contents?: true
Size: 542 Bytes
Versions: 7
Compression:
Stored size: 542 Bytes
Contents
# frozen_string_literal: true require 'rails/railtie' module Lite module Validators class Railtie < ::Rails::Railtie initializer 'lite-validators' do |app| Lite::Validators::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
7 entries across 7 versions & 1 rubygems