
Add "find or create" functionality
Reported by Nathan Herald | May 8th, 2008 @ 08:46 AM
This is a small patch, so I didn't feel the need to fork and pull and all of that.
Attached is a patch for find_or_create and a basic spec for it (that is passing). All unit specs pass on my system with this.
Comments and changes to this ticket
-
Alex Coles May 8th, 2008 @ 09:25 AM
- Title changed from Add find_or_create to Add "find or create" functionality
+1 for this, but one hesitation - is find_or_create the best terminology for this? (it sounds a little AR-like).
What about first_or_create?
-
Sam Smoot May 8th, 2008 @ 02:36 PM
- State changed from new to invalid
This is already in dm-more http://github.com/sam/dm-more/tr....
Should stay in there for now I think.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »