Since the point of this example is to show off the arguments to `where`, I'd ditch the `each` entirely, and format the `where` thusly:

```ruby
account.messages.where(
  date_before: date_before,
  date_after: date_after,
  subject: 'subject of email',
  from: 'foo@email.com'
)
```