I would suggest a more concise way:

```ruby
Contribution.find_by(filter)
```