mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
fix bad variable name
This commit is contained in:
parent
cb962d1157
commit
e7e9a8b238
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user