Automatic Eager Loading for Mongoid

Even in MongoDB, sometimes your models may still have reference relations. Like ActiveRecord, the popular MongoDB ORM, mongoid, provides #includes method to perform eager loads. Problems However, it is a pain to specify them manually in codes. In most scenes, you just need the eager loading when you what to…

Read More