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