views:

183

answers:

2

I have an application that tracks people, but all those people are, possibly, users of the product. I'd rather have the model called Person (rather than User), but can't seem to figure out how to indicate to Authlogic that I'm using Person instead of User.

I'm sure it's somewhere obvious that I'm just not seeing, but I've been pouring over things for hours now and I'm giving up. :-)

+1  A: 

I think you can just add acts_as_authentic in the Person model, and everything should work just fine. If you face anything says User in the documentation, then just change them to Person

Sikachu
+1  A: 

The name of the model class is inferred from the name of the session class that you derive from Authlogic::Session::Base.

class UserSession < Authlogic::Session::Base goes with the Users model.

class PersonSession < Authlogic::Session::Base should bind up to your Person model.

At least, that is what worked for me after an hour of digging through Authlogic's poor documentation.

don