Sha256: 991cd24e8e63f0a16145a696d19ddbb6c86a597c9c903c90b0b7300508f0be0f

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

module Immunio
  DIR = File.expand_path(File.dirname(__FILE__))

  def self.activate!
    require_relative "immunio/utils"
    require_relative "immunio/agent"
    require_relative "immunio/authentication"
    require_relative "immunio/plugin"

    agent # Force load agent
  end

  # Load plugins (after agent is loaded)
  def self.activate_plugins!
    require_relative "immunio/plugins/action_view"
    # NOTE immunio/plugins/active_record is loaded after ActiveRecord is configured in rails.rb
    require_relative "immunio/plugins/action_dispatch"
    require_relative "immunio/plugins/csrf"
    require_relative "immunio/plugins/io"
    require_relative "immunio/plugins/devise"
    require_relative "immunio/plugins/warden"
    require_relative "immunio/plugins/authlogic"
    require_relative "immunio/plugins/redirect"
    require_relative "immunio/plugins/eval"

    # Load and activate Rails engine
    require_relative "immunio/rails"
  end

  def self.reset!
    agent.reset if agent
  end
end

Immunio.activate!

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
immunio-1.1.10 lib/immunio.rb