Class: ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter::MysqlString

Inherits:
Type::String
  • Object
show all
Defined in:
activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#serialize(value) ⇒ Object


951
952
953
954
955
956
957
# File 'activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb', line 951

def serialize(value)
  case value
  when true then MySQL::Quoting::QUOTED_TRUE
  when false then MySQL::Quoting::QUOTED_FALSE
  else super
  end
end