Class: ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter::MysqlString
- Inherits:
-
Type::String
- Object
- ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter::MysqlString
- Defined in:
- lib/active_record/connection_adapters/abstract_mysql_adapter.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#serialize(value) ⇒ Object
865 866 867 868 869 870 871 |
# File 'lib/active_record/connection_adapters/abstract_mysql_adapter.rb', line 865 def serialize(value) case value when true then "1" when false then "0" else super end end |