Module: DateValidator

Defined in:
lib/date_validator.rb,
lib/date_validator/version.rb

Overview

A simple date validator for Rails 3.

Examples:

validates :expiration_date,
          :date => {:after => Proc.new { Time.now },
                    :before => Proc.new { Time.now + 1.year } }
# Using Proc.new prevents production cache issues

Constant Summary collapse

VERSION =

The version number.

"0.6.1"