Sha256: cc27b4e93d44e94d593923d6c27ac55a2ffb5fc27f8934ac529c4022f6afd6c9
Contents?: true
Size: 382 Bytes
Versions: 4
Compression:
Stored size: 382 Bytes
Contents
# frozen_string_literal: true module Mihari module Web module Middleware # # DB connection adapter for Rack app # class ConnectionAdapter attr_reader :app def initialize(app) @app = app end def call(env) Mihari::Database.with_db_connection { app.call env } end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems