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
359 |
# File 'activerecord/lib/active_record/connection_adapters/mysql_adapter.rb', line 359 def type; :float; end |
#type_cast(value) ⇒ Object
361 362 363 364 365 |
# File 'activerecord/lib/active_record/connection_adapters/mysql_adapter.rb', line 361 def type_cast(value) return if value.nil? value.to_f end |