Sha256: 85f65db15d7bc502d71924e19e2306bcc210947e5195e502187b19bb02b047ad
Contents?: true
Size: 407 Bytes
Versions: 11
Compression:
Stored size: 407 Bytes
Contents
begin require 'rails' module I18n class CoreApiRailtie < ::Rails::Railtie #:nodoc: initializer 'rails-i18n' do I18n.load_path << Dir[File.join(File.expand_path(File.dirname(__FILE__) + '/../../config/locales'), '*.yml')] I18n.load_path.flatten! end end end rescue LoadError # rubocop:disable HandleExceptions # We don't autoload locales in non-rails-projects end
Version data entries
11 entries across 11 versions & 1 rubygems