ActiveRecord should eager load the parent record when fetching a relation Edit

This could potentially cause performance problems with apps that were not built expecting this behavior. We want to stay away from features that are too magical. If anything I would make the behavior “opt in” by specifying some flag in the model like:

belongs_to :user, eager_load: true

Or as a separate method


If this is a feature you would like, I suggest you turn it into a Gem and get real world usage and feedback from the community.