Module: ChronoModel::Adapter::TSRange

Included in:
ChronoModel::Adapter
Defined in:
lib/chrono_model/adapter/tsrange.rb

Defined Under Namespace

Classes: Type

Instance Method Summary collapse

Instance Method Details

#initialize_type_map(m = type_map) ⇒ Object



43
44
45
46
47
48
49
50
51
52
53
# File 'lib/chrono_model/adapter/tsrange.rb', line 43

def initialize_type_map(m = type_map)
  super.tap do
    typ = ChronoModel::Adapter::TSRange::Type
    oid = typ::OID

    ar_type = type_map.fetch(oid)
    cm_type = typ.new(ar_type.subtype, ar_type.type)

    type_map.register_type oid, cm_type
  end
end