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 end Immunio.activate!