avoid using multiline anchors when validating

Resolves an ActiveModel 4 error ([see changelog](https://github.com/rails/rails/blob/4-0-stable/activemodel/CHANGELOG.md)).