method
type_cast_from_database
type_cast_from_database(value)
public
Hide source
# File activerecord/lib/active_record/type/integer.rb, line 15 def type_cast_from_database(value) return if value.nil? value.to_i end