method
quote_and_escape

quote_and_escape(value)
private
Hide source
# File activerecord/lib/active_record/connection_adapters/postgresql/oid/array.rb, line 72 def quote_and_escape(value) case value when ::String if string_requires_quoting?(value) value = value.gsub(/\\/, ARRAY_ESCAPE) value.gsub!(/"/,"\\\"") %("#{value}") else value end when nil then "NULL" when ::Date, ::DateTime, ::Time then subtype.type_cast_for_schema(value) else value end end