method
cast_value
v4.2.9 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter::MysqlString
cast_value(value)private
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 928
def cast_value(value)
case value
when true then "1"
when false then "0"
else super
end
end