Registry / other / date-validator

date-validator

JSON →
library0.12.0rbrubygemsunverified

A simple, ORM agnostic, Ruby 1.9 compatible date validator for Rails 3+, based on ActiveModel, supporting :after, :before, :after_or_equal_to and :before_or_equal_to options.

gem install date_validator
INSTALL
IMPORT
SIG · DATE-VALIDATOR
D
date-validator
otherrubyv0.12.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DateValidator
require 'date_validator'

Validate a date attribute is after today

require 'date_validator' class Event < ActiveRecord::Base validates :start_date, date: { after: Date.today } end
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.12.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Meta
1
Resources
date-validator — gem install date-validator · libregistry