Sha256: 843eacb1610aaa1c39c090a34be15b49b3a5e378ba86c0f8c798187b53f24ee2
Contents?: true
Size: 543 Bytes
Versions: 32
Compression:
Stored size: 543 Bytes
Contents
# frozen_string_literal: true # This patches the Name class so that it doesn't use pg gem specific quoting module ActiveRecord module ConnectionAdapters module PostgreSQL class Name def quoted if schema "#{quote_identifier(schema)}#{SEPARATOR}#{quote_identifier(identifier)}" else quote_identifier(identifier) end end private def quote_identifier(name) %("#{name.to_s.gsub("\"", "\"\"")}") end end end end end
Version data entries
32 entries across 32 versions & 2 rubygems