Sha256: e187b60ed7f8f5494c96823cbe53d6a0ec094cd2524b1a055a9cf12d3c39cb1b

Contents?: true

Size: 441 Bytes

Versions: 1

Compression:

Stored size: 441 Bytes

Contents

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

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

      initializer 'prx_auth.insert_middleware' do |app|
        app.config.middleware.insert_before ActionDispatch::ParamsParser, 'Rack::PrxAuth'
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
prx_auth-rails-0.0.1 lib/prx_auth/rails/railtie.rb