Class: ActiveRecord::ConnectionAdapters::MysqlAdapter::Fields::Float
- Defined in:
- lib/active_record/connection_adapters/mysql_adapter.rb
Instance Method Summary collapse
Methods inherited from Type
Instance Method Details
#type ⇒ Object
358 |
# File 'lib/active_record/connection_adapters/mysql_adapter.rb', line 358 def type; :float; end |
#type_cast(value) ⇒ Object
360 361 362 363 364 |
# File 'lib/active_record/connection_adapters/mysql_adapter.rb', line 360 def type_cast(value) return if value.nil? value.to_f end |