From 2d510504e6fdb1d4baaf16a7957b8fb05efd9fe0 Mon Sep 17 00:00:00 2001 From: adzap Date: Wed, 26 Aug 2009 21:07:29 -0700 Subject: [PATCH] change to lambda in examples --- README.rdoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.rdoc b/README.rdoc index a311de3..6d504ff 100644 --- a/README.rdoc +++ b/README.rdoc @@ -107,7 +107,7 @@ temporal options. == EXAMPLES: - validates_date :date_of_birth :before => Proc.new { 18.years.ago }, + validates_date :date_of_birth :before => lambda { 18.years.ago }, :before_message => "must be at least 18 years old" validates_time :breakfast_time, :on_or_after => '6:00am', @@ -115,7 +115,7 @@ temporal options. :before => :second_breakfast_time, :allow_nil => true - validates_datetime :appointment_date, :before => Proc.new { 1.week.from_now } + validates_datetime :appointment_date, :before => lambda { 1.week.from_now } validates_date :entry_date, :with_time => '17:00', :on_or_before => :competition_closing