Hello,
I was wondering which is the correct syntax to eager load via includes an extended association. For example, I'll like to eager load the last_message method:
class Conversation < ActiveRecord::Base has_many :messages do def last_message find(:last) end end end
Thank you!