From 34379e1e15c3f4b13cd6765a980118a9f3bd5a46 Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Mon, 2 Aug 2010 19:34:50 +1000 Subject: [PATCH] lil tweak --- lib/validates_timeliness/validator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/validates_timeliness/validator.rb b/lib/validates_timeliness/validator.rb index 55ebe5f..31a073b 100644 --- a/lib/validates_timeliness/validator.rb +++ b/lib/validates_timeliness/validator.rb @@ -55,7 +55,7 @@ module ValidatesTimeliness def attribute_raw_value(record, attr_name) before_type_cast = "#{attr_name}_before_type_cast" - record.send("#{attr_name}_before_type_cast") if record.respond_to?(before_type_cast) + record.send(before_type_cast) if record.respond_to?(before_type_cast) end def type_cast(value)