I have a model book with a one to many relation with authors.
I want to add an attribute to a book instance called last_author that puts the latest author and can be implemented as
def last_author
self.authors.last.name
end
but when i do Book.find(1).inspect i cant see the field last_author, but i want it. how can achieve that without writing a query to active record?