I am using mongodb with rails app and have model post.rb
If i am going to destroy a record of post, I want to have collection level lock so that the user wont be able to fire the destroy request twice for the same record and its before_destroy callback will not get executed twice.
Aucun commentaire:
Enregistrer un commentaire