Class: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Time

Inherits:
Type
  • Object
show all
Defined in:
lib/arjdbc/postgresql/base/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/arjdbc/postgresql/base/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