Sha256: 36a92d9013499a54c9c54747f96890fb5dfb2b3f3a338379462359697245304a
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
require 'active_archive/version' require 'active_archive/configuration' module ActiveArchive class << self attr_accessor :configuration end def self.configuration @configuration ||= Configuration.new end def self.configuration=(config) @configuration = config end def self.configure yield(configuration) end end require 'active_archive/table_definition' require 'active_archive/methods' require 'active_archive/scopes' require 'active_archive/base' require 'generators/active_archive/install_generator' ActiveRecord::Base.send(:include, ActiveArchive::Base) if defined?(Rails) require 'rails' 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 self.path(locale) File.expand_path("../../config/locales/#{locale}.yml", __FILE__) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_archive-2.4.0 | lib/active_archive.rb |
active_archive-2.3.0 | lib/active_archive.rb |