Sha256: 3891bf1eda94adca70079b52519e4a52cb5344bb0ccc753501b5d4dd9078ea7d
Contents?: true
Size: 261 Bytes
Versions: 1
Compression:
Stored size: 261 Bytes
Contents
module Superstore module Types class IntegerType < ActiveModel::Type::Value def cast_value(value) if value.is_a?(String) Integer(value, 10) else Integer(value) end rescue end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
superstore-2.5.0 | lib/superstore/types/integer_type.rb |