views:

20

answers:

0

I want to be able to create multiple user accounts with the same login (because of the case a user deletes his account... and then sign up with the same login). I am using authlogic and rails3_acts_as_paranoid.

But there is a problem: Authlogic validates the uniqueness of the login field - and IGNORES the default_scope(:conditions => {:active => true}).

(see further details of invalid bug report: https://rails.lighthouseapp.com/projects/8994/tickets/4064-validates_uniqueness_of-should-honor-default_scope-or-not )

I didnt find out how to tell validates_uniqueness_of to use the default scope... Can you help me?