Sha256: eca1d0703f847bbec8b193adb2b0509b58b26f2d83f5381139648a91182dd9dc
Contents?: true
Size: 653 Bytes
Versions: 1
Compression:
Stored size: 653 Bytes
Contents
%w[version activation containment expiration quarantine suspension visibility].each do |file_name| require "active_regulation/#{file_name}" end 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 def path(locale) File.expand_path("../../config/locales/#{locale}.yml", __FILE__) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_regulation-4.0.3 | lib/active_regulation.rb |