Class: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter::OID::Time

Inherits:
Type
  • Object
show all
Defined in:
activerecord/lib/active_record/connection_adapters/postgresql/oid.rb

Instance Method Summary collapse

Methods inherited from Type

#type, #type_cast_for_write

Instance Method Details

#type_cast(value) ⇒ Object



201
202
203
204
205
206
207
# File 'activerecord/lib/active_record/connection_adapters/postgresql/oid.rb', line 201

def type_cast(value)
  return if value.nil?

  # FIXME: probably we can improve this since we know it is PG
  # specific
  ConnectionAdapters::Column.string_to_dummy_time value
end