Class: ActiveRecord::Type::DecimalWithoutScale
- Inherits:
-
ActiveModel::Type::BigInteger
- Object
- ActiveModel::Type::Value
- ActiveModel::Type::Integer
- ActiveModel::Type::BigInteger
- ActiveRecord::Type::DecimalWithoutScale
- Defined in:
- activerecord/lib/active_record/type/decimal_without_scale.rb
Overview
:nodoc:
Constant Summary
Constants inherited from ActiveModel::Type::Integer
ActiveModel::Type::Integer::DEFAULT_LIMIT
Instance Attribute Summary
Attributes inherited from ActiveModel::Type::Value
Instance Method Summary collapse
Methods inherited from ActiveModel::Type::BigInteger
Methods inherited from ActiveModel::Type::Integer
#deserialize, #initialize, #serializable?, #serialize, #serialize_cast_value
Methods included from ActiveModel::Type::Helpers::Numeric
#cast, #changed?, #serialize, #serialize_cast_value
Methods inherited from ActiveModel::Type::Value
#==, #as_json, #assert_valid_value, #binary?, #cast, #changed?, #changed_in_place?, #deserialize, #force_equality?, #hash, #immutable_value, #initialize, #map, #serializable?, #serialize, #value_constructed_by_mass_assignment?
Constructor Details
This class inherits a constructor from ActiveModel::Type::Integer
Instance Method Details
#type ⇒ Object
6 7 8 |
# File 'activerecord/lib/active_record/type/decimal_without_scale.rb', line 6 def type :decimal end |
#type_cast_for_schema(value) ⇒ Object
10 11 12 |
# File 'activerecord/lib/active_record/type/decimal_without_scale.rb', line 10 def type_cast_for_schema(value) value.to_s.inspect end |