mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
hash syntax
This commit is contained in:
parent
4523138c3c
commit
4447361743
@ -36,8 +36,8 @@ module ValidatesTimeliness
|
|||||||
|
|
||||||
# Shorthand time and date symbols for restrictions
|
# Shorthand time and date symbols for restrictions
|
||||||
self.restriction_shorthand_symbols = {
|
self.restriction_shorthand_symbols = {
|
||||||
:now => lambda { Time.current },
|
now: proc { Time.current },
|
||||||
:today => lambda { Date.current }
|
today: proc { Date.current }
|
||||||
}
|
}
|
||||||
|
|
||||||
# Use the plugin date/time parser which is stricter and extensible
|
# Use the plugin date/time parser which is stricter and extensible
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user