Class: ActiveRecord::Type::DecimalWithoutScale

Inherits:
ActiveModel::Type::BigInteger
  • Object
show all
Defined in:
lib/active_record/type/decimal_without_scale.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#typeObject



4
5
6
# File 'lib/active_record/type/decimal_without_scale.rb', line 4

def type
  :decimal
end

#type_cast_for_schema(value) ⇒ Object



8
9
10
# File 'lib/active_record/type/decimal_without_scale.rb', line 8

def type_cast_for_schema(value)
  value.to_s.inspect
end