Class: ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields::Date
- Defined in:
- activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
Instance Method Summary collapse
Methods inherited from Type
Instance Method Details
#type ⇒ Object
323 |
# File 'activerecord/lib/active_record/connection_adapters/mysql_adapter.rb', line 323 def type; :date; end |
#type_cast(value) ⇒ Object
325 326 327 328 329 330 331 |
# File 'activerecord/lib/active_record/connection_adapters/mysql_adapter.rb', line 325 def type_cast(value) return if value.nil? # FIXME: probably we can improve this since we know it is mysql # specific ConnectionAdapters::Column.value_to_date value end |