Sha256: 618615a6277f33278cafe305b73d573783c4dea6c90c0a44e43263e475623ea7
Contents?: true
Size: 721 Bytes
Versions: 4
Compression:
Stored size: 721 Bytes
Contents
require "active_regulation/version" require "active_regulation/activation" require "active_regulation/containment" require "active_regulation/expiration" require "active_regulation/visibility" if defined?(Rails) require 'rails' module ActiveRegulation class Railtie < ::Rails::Railtie initializer 'active_regulation' do |app| ActiveRegulation::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 self.path(locale) File.expand_path("../../config/locales/#{locale}.yml", __FILE__) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems