A boolean validator for Rails 4.