I have a project which is using the ActsAsParanoid model of marking records deleted by updating a deleted_at datetime column.
Basically, when using an ValidateUnique validator on a column I want to pass it a condition ala "DeletedAt is null". Any objections to putting something like this in place? I'm going to override IsValid for the time being, but I wanted to see what everyone thought about this approach (which is part of the basic RoR approach with validators). Another change I've been thinking about is the possibility of adding in the Scope function of RoR's validators, so that you could declare a Tasks Name is unique with Scope -> ProjectID. Thoughts? -Chad ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ CastleProject-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/castleproject-users
