method
quote_and_escape
v4.0.2 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::PostgreSQLColumn::Cast
quote_and_escape(value)private
No documentation available.
# File activerecord/lib/active_record/connection_adapters/postgresql/cast.rb, line 141
def quote_and_escape(value)
case value
when "NULL"
value
else
"\"#{value.gsub(/"/,"\\\"")}\""
end
end