``` ruby
has_one :last_event, class_name: Event, foreign_key: 'project_id', -> { order(events: { created_at: :desc } ) }
```
It [will work](http://railscasts.com/episodes/400-what-s-new-in-rails-4) (need tests)