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 Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
