Sha256: f77dd54f61302fcea0ae8433bba19b9ff7c2811ac33b1dec65573037e188d5d0
Contents?: true
Size: 548 Bytes
Versions: 24
Compression:
Stored size: 548 Bytes
Contents
module Torque module PostgreSQL module Adapter module Quoting Name = ActiveRecord::ConnectionAdapters::PostgreSQL::Name # Quotes type names for use in SQL queries. def quote_type_name(string, schema = nil) name_schema, table = string.to_s.scan(/[^".\s]+|"[^"]*"/) if table.nil? table = name_schema name_schema = nil end schema = schema || name_schema || 'public' Name.new(schema, table).quoted end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems