thoughtbot/clearance — pull request #178 by danhodge (2011-12-01 22:16:40+00:00)
Title: Optional config param 'user_model_name' added

This is a patch for an issue that was closed due to a lack of interest: https://github.com/thoughtbot/clearance/issues/150

I am looking to use Clearance inside of a Rails engine with a namespaced User model, so I'm submitting this pull request. I had to specify the user model by name instead of as a class constant due to a circular dependency (User class includes Clearance::User, Clearance::User references Clearance.configuration).

I realize that these changes will not merge cleanly if they go in after this https://github.com/thoughtbot/clearance/pull/177. Please advise if you'd like me to base my patch off of the new authentication model.