Skip to content

Commit f220c4c

Browse files
author
Philip Becker
committed
reformat method and fix validator
1 parent 83c190a commit f220c4c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/validation/custom_method_validator.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module Definitions
44
module Validation
55
class CustomMethod
6-
VALID_ARGUMENTS = ["date", "year", "month", "day"]
6+
VALID_ARGUMENTS = ["date", "year", "month", "day", "region"]
77

88
def call(methods)
99
methods.each do |name, method|

us.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ methods:
367367
# all other states it's observed like "to_weekday_if_weekend"
368368
arguments: date, region
369369
ruby: |
370-
if region == 'us_ut'
370+
if region == "us_ut"
371371
case date.wday
372372
when 1
373373
date
@@ -385,7 +385,6 @@ methods:
385385
else
386386
date
387387
end
388-
389388
election_day:
390389
# Tuesday after the first Monday of November
391390
arguments: year

0 commit comments

Comments
 (0)