Activerecord::Validations::Helpers
Active Record validation helpers for your Rails project.
Installation
gem 'activerecord-validations-helpers'
And then execute:
$ bundle
Or install it yourself as:
$ gem install activerecord-validations-helpers
Usage
assert_equal true, User.validation_options(:name, :presence)
assert_equal { less_than: 120, only_integer: true }, User.validation_options(:age, :numericality)
assert User.validates?(:name)
refute User.validates?(:age, :presence)
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/raisintech/activerecord-validations-helpers.