require 'rails/railtie' require "scorpion/rack/middleware" module Scorpion module Rails class Railtie < ::Rails::Railtie initializer "scorpion.configure" do |app| ::ActionController::Base.send :include, Scorpion::Rails::Controller ::ActiveJob::Base.send :include, Scorpion::Rails::Job ::ActionMailer::Base.send :include, Scorpion::Rails::Mailer ::Scorpion::Rails::ActiveRecord.install! end end end end