We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Clearance’s configuration lives in initializers/clearance.rb file. You can configure:
For example:
Clearance.configure do |config| config.mailer_sender = '[email protected]' 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.