Class: ActiveRecord::ConnectionAdapters::AbstractCubrid2Adapter::CubridString

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#serialize(value) ⇒ Object



763
764
765
766
767
768
769
# File 'lib/active_record/connection_adapters/abstract_cubrid2_adapter.rb', line 763

def serialize(value)
  case value
  when true then '1'
  when false then '0'
  else super
  end
end