mongoid/mongoid — pull request #2317 by incorvia (2012-08-25 15:12:42+00:00)
Title: Add support for first_or_create

Adds support for the finder 'first_or_create'. Finder delegates to 'first_or' which will return the first document in the collection or create an object accordingly.