Mongoid fix

This will check if we need to use after_commit or other hooks.
I hope to fix issue #44 with this.
Merge branch 'mongoid_fix'

* mongoid_fix:
  Mongoid fix