Class: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::MoneyDecoder

Inherits:
PG::SimpleDecoder
  • Object
show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/postgresql_adapter.rb

Overview

:nodoc:

Constant Summary collapse

TYPE =
OID::Money.new

Instance Method Summary collapse

Instance Method Details

#decode(value, tuple = nil, field = nil) ⇒ Object



1040
1041
1042
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/connection_adapters/postgresql_adapter.rb', line 1040

def decode(value, tuple = nil, field = nil)
  TYPE.deserialize(value)
end