renamed calls to timeliness_date_time_parse to parse_date_time which will correctly an overrided method

This commit is contained in:
Adam Meehan
2008-07-21 13:48:25 +10:00
parent 539f823b8b
commit 5e08a10fb0
3 changed files with 3 additions and 3 deletions

View File

@@ -35,7 +35,7 @@ module ValidatesTimeliness
# Does strict time type cast checking for Rails 2.1 timezone handling
def strict_time_type_cast(time)
time = self.class.timeliness_date_time_parse(time, :datetime)
time = self.class.parse_date_time(time, :datetime)
time_in_time_zone(time)
end

View File

@@ -132,7 +132,7 @@ module ValidatesTimeliness
when Proc
restriction.call(record)
else
timeliness_date_time_parse(restriction, configuration[:type], false)
parse_date_time(restriction, configuration[:type], false)
end
next if compare.nil?