Sha256: c48a5197abee1b649c614fe25d624ec62d1e35a73b7b54e5d3c0aaa17f223b49

Contents?: true

Size: 640 Bytes

Versions: 2

Compression:

Stored size: 640 Bytes

Contents

require "console1984"

module Audits1984
  class Engine < ::Rails::Engine
    isolate_namespace Audits1984

    config.audits1984 = ActiveSupport::OrderedOptions.new

    initializer "audits1984.config" do
      config.audits1984.each do |key, value|
        Audits1984.send("#{key}=", value)
      end
    end

    initializer "audits1984.session" do
      ActiveSupport.on_load(:console_1984_session) do
        include Audits1984::Session::Auditable, Audits1984::Session::Iterable
      end
    end

    initializer "audits1984.assets.precompile" do |app|
      app.config.assets.precompile << "audits1984_manifest.js"
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
audits1984-0.1.1 lib/audits1984/engine.rb
audits1984-0.1.0 lib/audits1984/engine.rb