Sha256: c45e9fda44aa7628c5060f21cfe7cefddd0c3edfa2166a42eb9d61ee3f23deb3
Contents?: true
Size: 312 Bytes
Versions: 2
Compression:
Stored size: 312 Bytes
Contents
module PgHero module BaseHelper def pghero_pretty_ident(table, schema: nil) ident = table if schema && schema != "public" ident = "#{schema}.#{table}" end if ident =~ /\A[a-z0-9_]+\z/ ident else @database.quote_ident(ident) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pghero-2.2.0 | app/helpers/pg_hero/base_helper.rb |
pghero-2.1.1 | app/helpers/pg_hero/base_helper.rb |