Method: ActiveRecord::ConnectionAdapters::PostgreSQL::Quoting#quote_string

Defined in:
lib/active_record/connection_adapters/postgresql/quoting.rb

#quote_string(s) ⇒ Object

Quotes strings for use in SQL input.



74
75
76
# File 'lib/active_record/connection_adapters/postgresql/quoting.rb', line 74

def quote_string(s) # :nodoc:
  @connection.escape(s)
end