Sha256: f734254d626c3485466f1981fd0c965dcec7766b4144b93f382095af67292c53

Contents?: true

Size: 449 Bytes

Versions: 4

Compression:

Stored size: 449 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.middleware
        app.config.middleware.insert ActionDispatch::ParamsParser, Rack::PrxAuth
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
prx_auth-rails-0.1.0 lib/prx_auth/rails/railtie.rb
prx_auth-rails-0.0.4 lib/prx_auth/rails/railtie.rb
prx_auth-rails-0.0.3 lib/prx_auth/rails/railtie.rb
prx_auth-rails-0.0.2 lib/prx_auth/rails/railtie.rb