From e7e9a8b238cddedb20f8dd90fd448594d360dcca Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Thu, 5 Mar 2009 18:30:48 +1100 Subject: [PATCH] fix bad variable name --- lib/validates_timeliness/active_record/attribute_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/validates_timeliness/active_record/attribute_methods.rb b/lib/validates_timeliness/active_record/attribute_methods.rb index 25b0c62..5fb04b5 100644 --- a/lib/validates_timeliness/active_record/attribute_methods.rb +++ b/lib/validates_timeliness/active_record/attribute_methods.rb @@ -73,7 +73,7 @@ module ValidatesTimeliness if @attributes_cache.has_key?(attr_name) time = read_attribute_before_type_cast(attr_name) - time = self.class.parse_date_time(date, type) + time = self.class.parse_date_time(time, type) else time = read_attribute(attr_name) @attributes[attr_name] = time && time_zone_aware ? time.in_time_zone : time