Sha256: ef02dccd56c8e261b4746ff59aac57c6f133f4d7d9f112323178fb498166805f

Contents?: true

Size: 298 Bytes

Versions: 18

Compression:

Stored size: 298 Bytes

Contents

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

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
clearance-1.8.1 lib/clearance/engine.rb
clearance-1.8.0 lib/clearance/engine.rb
clearance-1.7.0 lib/clearance/engine.rb
clearance-1.6.1 lib/clearance/engine.rb
clearance-1.6.0 lib/clearance/engine.rb
clearance-1.5.1 lib/clearance/engine.rb
clearance-1.5.0 lib/clearance/engine.rb
clearance-1.4.3 lib/clearance/engine.rb
clearance-1.4.2 lib/clearance/engine.rb
clearance-1.4.1 lib/clearance/engine.rb
clearance-1.4.0 lib/clearance/engine.rb
clearance-1.3.0 lib/clearance/engine.rb
clearance-1.2.1 lib/clearance/engine.rb
clearance-1.2.0 lib/clearance/engine.rb
clearance-1.1.0 lib/clearance/engine.rb
clearance-1.0.1 lib/clearance/engine.rb
clearance-1.0.0 lib/clearance/engine.rb
clearance-1.0.0.rc8 lib/clearance/engine.rb