This casting allows nil values
227 228 229
# File 'lib/atdis/model.rb', line 227 def self.cast_integer(value) value&.to_i end