mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
fixed integer vs string expectation
This commit is contained in:
parent
b4c1a39343
commit
ac90ab96cd
@ -56,7 +56,7 @@ module ValidatesTimeliness
|
|||||||
values = [nil] * 6
|
values = [nil] * 6
|
||||||
pairs.map do |(param, value)|
|
pairs.map do |(param, value)|
|
||||||
position = param.scan(/\(([0-9]*).*\)/).first.first
|
position = param.scan(/\(([0-9]*).*\)/).first.first
|
||||||
values[position.to_i-1] = value
|
values[position.to_i-1] = value.to_i
|
||||||
end
|
end
|
||||||
|
|
||||||
TimelinessDateTime.new(*values)
|
TimelinessDateTime.new(*values)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user