burgalon/mongoid_optimistic_locking — pull request #6 by jingoro (2012-05-29 23:20:40+00:00)
Title: Adding locking around #save, #destroy, added #unlock...

Hi! Thank you for your wonderful mongoid_optimistic_locking gem.

I'm not looking to get this commit pulled in but rather I want to get your feedback on this commit. There are a lot of changes so let me summarize:

* can use the regular #save or #save! instead of #save_optimistic!
* can now use locking with #destroy
* can use #unlock to persist without locking
* file reorganization to be more modern Ruby style

Let me know what you think.