Here you can directly use ```@copy.loans.select(&:date_returned).last```.