Class: ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Json
- Inherits:
-
Type
- Object
- Type
- ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Json
show all
- Defined in:
- lib/arjdbc/postgresql/base/oid.rb
Instance Method Summary
collapse
Methods inherited from Type
#infinity, #simplified_type
Instance Method Details
#accessor ⇒ Object
341
342
343
|
# File 'lib/arjdbc/postgresql/base/oid.rb', line 341
def accessor
ActiveRecord::Store::StringKeyedHashAccessor
end
|
#type ⇒ Object
329
|
# File 'lib/arjdbc/postgresql/base/oid.rb', line 329
def type; :json end
|
#type_cast(value) ⇒ Object
335
336
337
338
339
|
# File 'lib/arjdbc/postgresql/base/oid.rb', line 335
def type_cast(value)
return if value.nil?
ConnectionAdapters::PostgreSQLColumn.string_to_json value
end
|
#type_cast_for_write(value) ⇒ Object