Files

Class/Module Index [+]

Quicksearch

ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Json

Public Instance Methods

accessor() click to toggle source
# File lib/arjdbc/postgresql/base/oid.rb, line 341
def accessor
  ActiveRecord::Store::StringKeyedHashAccessor
end
type() click to toggle source
# File lib/arjdbc/postgresql/base/oid.rb, line 329
def type; :json end
type_cast(value) click to toggle source
# 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) click to toggle source
# File lib/arjdbc/postgresql/base/oid.rb, line 331
def type_cast_for_write(value)
  ConnectionAdapters::PostgreSQLColumn.json_to_string value
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.