ActiveRecord::ConnectionAdapters::PostgreSQL::Quoting

module ActiveRecord::ConnectionAdapters::PostgreSQL::Quoting

Public Instance Methods

escape_bytea(value) Show source

Escapes binary strings for bytea input to the database.

# File activerecord/lib/active_record/connection_adapters/postgresql/quoting.rb, line 6
def escape_bytea(value)
  @connection.escape_bytea(value) if value
end