Skip to content
andhapp edited this page Sep 13, 2010 · 7 revisions

How To Configure Clearance in your app

Clearance’s configuration lives in initializers/clearance.rb file. You can configure:

  • mailer_sender i.e. address from where the e-mail goes out.
  • cookie_expiration time in a block.

For example:


Clearance.configure do |config|
config.mailer_sender = ‘[email protected]
config.cookie_expiration = lambda { 2.weeks.from_now.utc }
end