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

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

Instance Method Summary collapse

Methods inherited from Type

#type

Instance Method Details

#type_cast(value) ⇒ Object



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

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