FailfastValidation
Failfast mode for ActiveModel::EachValidator
Usage
class YourModel
include ActiveModel::Model
include ActiveModel::FailfastValidation
failfast_validation :attr_name
# validates :attr_name, ....
endInstallation
Add this line to your application's Gemfile:
gem 'failfast_validation'And then execute:
$ bundleLicense
The gem is available as open source under the terms of the MIT License.