Skip to content
marnen edited this page Jan 18, 2012 · 2 revisions

Override sign_in in your application controller. Start with what it looks like in authentication.rb, but add this key/value pair:

:domain => ".#{request.host}"

In recent versions of Clearance, it appears that this setting has been moved to Clearance::Session#add_cookie_to_headers in session.rb, which makes it harder to override. QUERY: What's the best way to deal with subdomains now?