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



6
7
8
# File 'lib/active_record/type/decimal_without_scale.rb', line 6

def type
  :decimal
end

#type_cast_for_schema(value) ⇒ Object



10
11
12
# File 'lib/active_record/type/decimal_without_scale.rb', line 10

def type_cast_for_schema(value)
  value.to_s.inspect
end