tiny consistency change

This commit is contained in:
Adam Meehan 2010-12-11 09:17:08 +11:00
parent 509336e080
commit b09f937688

View File

@ -72,9 +72,8 @@ module ValidatesTimeliness
end
def attribute_raw_value(record, attr_name)
if record.respond_to?(:_timeliness_raw_value_for)
record.respond_to?(:_timeliness_raw_value_for) &&
record._timeliness_raw_value_for(attr_name)
end
end
def timezone_aware?(record, attr_name)