mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-26 07:43:00 +00:00
change shorthand values to current timezone (thanks rpbertp13)
This commit is contained in:
@@ -19,8 +19,8 @@ ValidatesTimeliness.setup do |config|
|
||||
#
|
||||
# Shorthand date and time symbols for restrictions
|
||||
# config.restriction_shorthand_symbols.update(
|
||||
# :now => lambda { Time.now },
|
||||
# :today => lambda { Date.today }
|
||||
# :now => lambda { Time.current },
|
||||
# :today => lambda { Date.current }
|
||||
# )
|
||||
#
|
||||
# Use the plugin date/time parser which is stricter and extendable
|
||||
|
||||
Reference in New Issue
Block a user