Methods
T
Instance Public methods
type_cast(value)
# File activerecord/lib/active_record/connection_adapters/mysql_adapter.rb, line 311
def type_cast(value)
  return if value.nil?

  value.to_i rescue value ? 1 : 0
end