Sha256: e05d549bc06c61d55356c4e1babb995a3afe50b530fedeb724727c6f4111178b

Contents?: true

Size: 462 Bytes

Versions: 3

Compression:

Stored size: 462 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scorpion-ioc-0.5.14 lib/scorpion/rails/railtie.rb
scorpion-ioc-0.5.13 lib/scorpion/rails/railtie.rb
scorpion-ioc-0.5.12 lib/scorpion/rails/railtie.rb