debian-mirror-gitlab/lib/api/validations/types/comma_separated_to_integer_array.rb
2020-08-09 17:44:08 +05:30

16 lines
293 B
Ruby

# frozen_string_literal: true
module API
module Validations
module Types
class CommaSeparatedToIntegerArray < CommaSeparatedToArray
def self.coerce
lambda do |value|
super.call(value).map(&:to_i)
end
end
end
end
end
end