Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (16 sloc) 0.399 kb
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
)
config.to_prepare do
Clearance.configuration.reload_user_model
end
end
end
Jump to Line
Something went wrong with that request. Please try again.