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, #type_cast_for_write

Instance Method Details

#type_cast(value) ⇒ Object



206
207
208
209
210
211
212
# File 'lib/active_record/connection_adapters/postgresql/oid.rb', line 206

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