Sha256: 17035416bd5fa13ce243895a781e30fde2bb5d4b093b07d1d18c79062e6eebeb

Contents?: true

Size: 293 Bytes

Versions: 6

Compression:

Stored size: 293 Bytes

Contents

require "clearance"
require "rails"

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

    config.app_middleware.insert_after ActionDispatch::Cookies, Clearance::RackSession
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
clearance-0.16.3 lib/clearance/engine.rb
clearance-0.16.2 lib/clearance/engine.rb
clearance-0.16.1 lib/clearance/engine.rb
clearance-0.16.0 lib/clearance/engine.rb
clearance-0.15.0 lib/clearance/engine.rb
clearance-0.14.0 lib/clearance/engine.rb