From 444736174326e66c57ebc702aa50594b3f28f910 Mon Sep 17 00:00:00 2001 From: Adam Meehan Date: Sat, 3 Aug 2019 12:38:47 +1000 Subject: [PATCH] hash syntax --- lib/validates_timeliness.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/validates_timeliness.rb b/lib/validates_timeliness.rb index 2a15907..b6b4868 100644 --- a/lib/validates_timeliness.rb +++ b/lib/validates_timeliness.rb @@ -36,8 +36,8 @@ module ValidatesTimeliness # Shorthand time and date symbols for restrictions self.restriction_shorthand_symbols = { - :now => lambda { Time.current }, - :today => lambda { Date.current } + now: proc { Time.current }, + today: proc { Date.current } } # Use the plugin date/time parser which is stricter and extensible