Skip to content

Commit

Permalink
README touch ups
Browse files Browse the repository at this point in the history
  • Loading branch information
adzap committed Aug 9, 2012
1 parent 7bcdea1 commit fd73c4e
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions README.rdoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
= ValidatesTimeliness

* Source: http://github.com/adzap/validates_timeliness
* Bugs: http://github.com/adzap/validates_timeliness/issues
* Issues: http://github.com/adzap/validates_timeliness/issues

== Description

Expand All @@ -18,24 +18,19 @@ If you a looking for the old version for Rails 2.x go here[http://github.com/adz

* Only Rails date/time validation plugin offering complete validation (See ORM/ODM support)

* Adds extensions to fix Rails date/time select issues (See Extensions)

* Uses extensible date/time parser (Using {timeliness gem}[http://github.com/adzap/timeliness]. See Plugin Parser)

* Supports I18n for the error messages

* Supports Ruby 1.8.x, 1.9.x and Rubinius.
* Adds extensions to fix Rails date/time select issues (See Extensions)

== Installation
* Supports I18n for the error messages

As plugin (from master)
* Supports all the Rubies (that any sane person would be using in production).

rails plugin install git://github.com/adzap/validates_timeliness.git

As gem
== Installation

# in Gemfile
gem 'validates_timeliness', '~> 3.0.2'
gem 'validates_timeliness', '~> 3.0'

# Run bundler
$ bundle install
Expand All @@ -55,7 +50,7 @@ NOTE: You may wish to enable the plugin parser and the extensions to start. Plea
validates_datetime :occurred_at

validates_date :date_of_birth, :before => lambda { 18.years.ago },
:before_message => "must be at least 18 years old"
:before_message => "must be at least 18 years old"

validates_datetime :finish_time, :after => :start_time # Method symbol

Expand All @@ -79,7 +74,7 @@ validation method
validates :date_of_birth, :timeliness => {:on_or_before => lambda { Date.current }, :type => :date}
end

# or even on a specific record, per ActiveModel API.
or even on a specific record, per ActiveModel API.

@person.validates_date :date_of_birth, :on_or_before => lambda { Date.current }

Expand Down Expand Up @@ -298,4 +293,4 @@ To see the generous people who have contributed code, take a look at the {contri

== License

Copyright (c) 2008-2010 Adam Meehan, released under the MIT license
Copyright (c) 2008 Adam Meehan, released under the MIT license

0 comments on commit fd73c4e

Please sign in to comment.