Skip to content
Active Record validation helpers for your Rails project
Ruby Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
lib/activerecord/validations
test
.gitignore
.rubocop.yml
Gemfile
README.md
Rakefile
activerecord-validations-helpers.gemspec

README.md

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.

You can’t perform that action at this time.