Class: ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields::Boolean
- Defined in:
- activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
Instance Method Summary collapse
Methods inherited from Type
Instance Method Details
#type_cast(value) ⇒ Object
377 378 379 380 381 |
# File 'activerecord/lib/active_record/connection_adapters/mysql_adapter.rb', line 377 def type_cast(value) return if value.nil? ConnectionAdapters::Column.value_to_boolean value end |