Skip to content
This repository
file 13 lines (10 sloc) 0.298 kb
1 2 3 4 5 6 7 8 9 10 11 12
require 'clearance'
require 'rails'

module Clearance
  class Engine < Rails::Engine
    initializer 'clearance.filter' do |app|
      app.config.filter_parameters += [:password, :token]
    end

    config.app_middleware.insert_after ActionDispatch::ParamsParser, Clearance::RackSession
  end
end
Something went wrong with that request. Please try again.