Sha256: 19adbb8f38bf41345abff32ae61e0595ccd2a010d14f6c0eefccc7be2a321026
Contents?: true
Size: 451 Bytes
Versions: 1
Compression:
Stored size: 451 Bytes
Contents
# frozen_string_literal: true require 'sequel' require 'ditty/services/logger' # Delete DATABASE_URL from the environment, so it isn't accidently # passed to subprocesses. DATABASE_URL may contain passwords. DB = Sequel.connect(ENV['RACK_ENV'] == 'production' ? ENV.delete('DATABASE_URL') : ENV['DATABASE_URL']) log_level = (ENV['SEQUEL_LOGGING_LEVEL'] || :debug).to_sym DB.sql_log_level = log_level DB.loggers << Ditty::Services::Logger.instance
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ditty-0.2.0 | lib/ditty/db.rb |