DontValidate
TODO: Write a gem description
Remove earlier defined validations from ActiveModels
Add this line to your application's Gemfile:
gem 'dont_validate'
And then execute:
$ bundle
Or install it yourself as:
$ gem install dont_validate
Usage
The inverse of validates
$ validates :some_attribute, :presence => true
$ dont_validate :some_attribute, :presence => true
$ validates :some_attribute, :format => {:with => /\d+/}
$ dont_validate :some_attribute, :format => true
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request