Class: API::Validations::Types::CommaSeparatedToIntegerArray

Inherits:
CommaSeparatedToArray show all
Defined in:
lib/api/validations/types/comma_separated_to_integer_array.rb

Class Method Summary collapse

Class Method Details

.coerceObject


7
8
9
10
11
# File 'lib/api/validations/types/comma_separated_to_integer_array.rb', line 7

def self.coerce
  lambda do |value|
    super.call(value).map(&:to_i)
  end
end