readme and generator comments

This commit is contained in:
Adam Meehan
2010-10-08 08:40:22 +11:00
parent d450ab7c06
commit 247e157708
2 changed files with 4 additions and 4 deletions

View File

@@ -73,7 +73,7 @@ validation method
class Person < ActiveRecord::Base
validates_date :date_of_birth, :on_or_before => lambda { Date.today }
# or
validates :date_of_birth, :timeliness => {:on_or_before => lambda { Date.today }, :type => date}
validates :date_of_birth, :timeliness => {:on_or_before => lambda { Date.today }, :type => :date}
end
# or even on a specific record, per ActiveModel API.