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