respect table_name config also for mongoid collections

This solves #146. I am having though some hard time to add a test using mongoid as orm.