Class: ActiveRecord::TypedStore::DecimalType
- Inherits:
-
ActiveRecord::Type::Decimal
- Object
- ActiveRecord::Type::Decimal
- ActiveRecord::TypedStore::DecimalType
- Defined in:
- lib/active_record/typed_store/column.rb
Instance Method Summary collapse
Instance Method Details
#type_cast_from_database(value) ⇒ Object
59 60 61 62 |
# File 'lib/active_record/typed_store/column.rb', line 59 def type_cast_from_database(value) value = value.to_s if value.is_a?(Float) super(value) end |