We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Clearance’s configuration lives in initializers/clearance.rb file. You can configure:
For example:
Clearance.configure do |config| config.mailer_sender = 'me@example.com' config.cookie_expiration = lambda { 2.weeks.from_now.utc } end
The default value for cookie_expiration is 1 year. A session cookie can be created by passing nil inside the block.