Class: ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields::Time
- Defined in:
- activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
Instance Method Summary collapse
Methods inherited from Type
Instance Method Details
#type ⇒ Object
347 |
# File 'activerecord/lib/active_record/connection_adapters/mysql_adapter.rb', line 347 def type; :time; end |
#type_cast(value) ⇒ Object
349 350 351 352 353 354 355 |
# File 'activerecord/lib/active_record/connection_adapters/mysql_adapter.rb', line 349 def type_cast(value) return if value.nil? # FIXME: probably we can improve this since we know it is mysql # specific ConnectionAdapters::Column.string_to_dummy_time value end |