Sha256: 01d9e278aee8c50dc4815a0e32d49aeb3bdbd614ffdf98fc19431ba8a95a3cdc

Contents?: true

Size: 459 Bytes

Versions: 13

Compression:

Stored size: 459 Bytes

Contents

require 'rails/railtie'
require 'prx_auth/rails/ext/controller'
require 'rack/prx_auth'

module PrxAuth::Rails
  class Railtie < ::Rails::Railtie
    config.to_prepare do
      ApplicationController.send(:include, PrxAuth::Rails::Controller)
    end

    initializer 'prx_auth.insert_middleware' do |app|
      if PrxAuth::Rails.configuration.install_middleware
        app.config.middleware.insert_after Rack::Head, Rack::PrxAuth
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
prx_auth-rails-3.0.1 lib/prx_auth/rails/railtie.rb
prx_auth-rails-3.0.0 lib/prx_auth/rails/railtie.rb
prx_auth-rails-2.1.0 lib/prx_auth/rails/railtie.rb
prx_auth-rails-2.0.0 lib/prx_auth/rails/railtie.rb
prx_auth-rails-1.8.0 lib/prx_auth/rails/railtie.rb
prx_auth-rails-1.7.0 lib/prx_auth/rails/railtie.rb
prx_auth-rails-1.6.0 lib/prx_auth/rails/railtie.rb
prx_auth-rails-1.5.0 lib/prx_auth/rails/railtie.rb
prx_auth-rails-1.4.1 lib/prx_auth/rails/railtie.rb
prx_auth-rails-1.4.0 lib/prx_auth/rails/railtie.rb
prx_auth-rails-1.3.0 lib/prx_auth/rails/railtie.rb
prx_auth-rails-1.2.0 lib/prx_auth/rails/railtie.rb
prx_auth-rails-1.0.0 lib/prx_auth/rails/railtie.rb