rails/rails — pull request #14456 by henrik (2014-03-23 11:35:30+00:00)
Title: ActiveRecord/ActiveModel '#validate' alias for 'valid?'

It's unintuitive to call '#valid?' when you want to run validations but don't care about the return value.

The alias in ActiveRecord isn't strictly necessary (the ActiveModel alias is still in effect), but it clarifies.

@dhh was positive last time when I asked a few months ago: https://twitter.com/henrik/status/390205394305703936

An alternative implementation would be to actually implement `valid?` in terms of `validate`, but I figured an alias would be the simplest thing that works.