Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iguchi1124/failfast_validation
https://github.com/iguchi1124/failfast_validation
Last synced: 17 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/iguchi1124/failfast_validation
- Owner: iguchi1124
- License: mit
- Created: 2018-03-11T11:27:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-11T15:03:31.000Z (over 6 years ago)
- Last Synced: 2024-09-30T23:16:20.714Z (about 1 month ago)
- Language: Ruby
- Size: 26.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# FailfastValidation
Failfast mode for ActiveModel::EachValidator## Usage
```rb
class YourModel
include ActiveModel::Model
include ActiveModel::FailfastValidationfailfast_validation :attr_name
# validates :attr_name, ....
end
```## Installation
Add this line to your application's Gemfile:```ruby
gem 'failfast_validation'
```And then execute:
```bash
$ bundle
```## License
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).