Sha256: 98745440d6d5272d55b920cbdc63031e46447096c841a7608e79c8150addcd10

Contents?: true

Size: 571 Bytes

Versions: 12

Compression:

Stored size: 571 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 if defined? ::ActionController
        ::ActiveJob::Base.send :include, Scorpion::Rails::Job if defined? ::ActiveJob
        ::ActionMailer::Base.send :include, Scorpion::Rails::Mailer if defined? ::ActionMailer

        ::Scorpion::Rails::ActiveRecord.install! if defined? ::ActiveRecord
      end

    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
scorpion-ioc-0.6.2 lib/scorpion/rails/railtie.rb
scorpion-ioc-0.6.1 lib/scorpion/rails/railtie.rb
scorpion-ioc-0.6.0 lib/scorpion/rails/railtie.rb
scorpion-ioc-0.5.23 lib/scorpion/rails/railtie.rb
scorpion-ioc-0.5.22 lib/scorpion/rails/railtie.rb
scorpion-ioc-0.5.21 lib/scorpion/rails/railtie.rb
scorpion-ioc-0.5.20 lib/scorpion/rails/railtie.rb
scorpion-ioc-0.5.19 lib/scorpion/rails/railtie.rb
scorpion-ioc-0.5.18 lib/scorpion/rails/railtie.rb
scorpion-ioc-0.5.17 lib/scorpion/rails/railtie.rb
scorpion-ioc-0.5.16 lib/scorpion/rails/railtie.rb
scorpion-ioc-0.5.15 lib/scorpion/rails/railtie.rb