Added fix for after_commit for use with mongoid.
Merge pull request #1 from dam13n/after_commit_catch

Added fix for after_commit for use with mongoid.