method

type_cast

Importance_0
v3.1.0 - Show latest stable - 0 notes - Class: ActiveRecord::ConnectionAdapters::MysqlAdapter
type_cast(value, column) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/mysql_adapter.rb, line 247
      def type_cast(value, column)
        return super unless value == true || value == false

        value ? 1 : 0
      end
Register or log in to add new notes.