Sha256: 1ee166393ccb921680fb3dd799d90e12702de3a8734659321468fa0cc2039cb9
Contents?: true
Size: 308 Bytes
Versions: 2
Compression:
Stored size: 308 Bytes
Contents
module Rasti module DB module Helpers module WithSchema private def with_schema(table, field=nil) qualified_table = schema ? Sequel[schema][table] : table field ? Sequel[qualified_table][field] : qualified_table end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rasti-db-0.2.2 | lib/rasti/db/helpers.rb |
rasti-db-0.2.1 | lib/rasti/db/helpers.rb |