Sha256: 9a25a57dca89f4596cbb894ceac52482e56138832fbc6efc48a092ec8afe3712
Contents?: true
Size: 442 Bytes
Versions: 3
Compression:
Stored size: 442 Bytes
Contents
module ActiveArchive class Railtie < ::Rails::Railtie initializer 'active_archive' do |app| ActiveArchive::Railtie.instance_eval do [app.config.i18n.available_locales].flatten.each do |locale| (I18n.load_path << path(locale)) if File.file?(path(locale)) end end end protected def path(locale) File.expand_path("../../config/locales/#{locale}.yml", __FILE__) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
active_archive-4.0.2 | lib/active_archive/railtie.rb |
active_archive-4.0.1 | lib/active_archive/railtie.rb |
active_archive-4.0.0 | lib/active_archive/railtie.rb |