From b09f937688db17b91225c25310f64553c3ad3f62 Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Sat, 11 Dec 2010 09:17:08 +1100 Subject: [PATCH] tiny consistency change --- lib/validates_timeliness/validator.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/validates_timeliness/validator.rb b/lib/validates_timeliness/validator.rb index 07bf3f4..3c0019d 100644 --- a/lib/validates_timeliness/validator.rb +++ b/lib/validates_timeliness/validator.rb @@ -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)