Class: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Boolean
- Inherits:
-
Type
- Object
- Type
- ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Boolean
show all
- Defined in:
- activerecord/lib/active_record/connection_adapters/postgresql/oid.rb
Instance Method Summary
collapse
Methods inherited from Type
#type, #type_cast_for_write
Instance Method Details
#type_cast(value) ⇒ Object
169
170
171
172
173
|
# File 'activerecord/lib/active_record/connection_adapters/postgresql/oid.rb', line 169
def type_cast(value)
return if value.nil?
ConnectionAdapters::Column.value_to_boolean value
end
|