Class: ActiveRecord::Type::Decimal
- Includes:
- Numeric
- Defined in:
- lib/active_record/type/decimal.rb
Overview
:nodoc:
Direct Known Subclasses
ConnectionAdapters::PostgreSQL::OID::Decimal, ConnectionAdapters::PostgreSQL::OID::Money
Instance Attribute Summary
Attributes inherited from Value
Instance Method Summary collapse
Methods included from Numeric
#changed?, #number?, #type_cast
Methods inherited from Value
#==, #binary?, #changed?, #changed_in_place?, #hash, #initialize, #klass, #number?, #text?, #type_cast_for_database, #type_cast_from_database, #type_cast_from_user
Constructor Details
This class inherits a constructor from ActiveRecord::Type::Value
Instance Method Details
#type ⇒ Object
6 7 8 |
# File 'lib/active_record/type/decimal.rb', line 6 def type :decimal end |
#type_cast_for_schema(value) ⇒ Object
10 11 12 |
# File 'lib/active_record/type/decimal.rb', line 10 def type_cast_for_schema(value) value.to_s end |