So I perform a query to the db and I have a complete array of objects:
@attachments = Job.find(1).attachments
Now that I have an array of o
have you tried eager loading?
@attachments = Job.includes(:attachments).find(1).attachments