Sha256: 926e8fe1f2682bb56a20894c6b876fb1be6f61335f05efb9cd32e13115e3a661

Contents?: true

Size: 311 Bytes

Versions: 5

Compression:

Stored size: 311 Bytes

Contents

module Napa
  class Middleware
    class DatabaseStats
      def initialize(app)
        @app = app
      end

      def call(env)
        require 'napa/active_record_extensions/notifications_subscriber'
        status, headers, body = @app.call(env)
        [status, headers, body]
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
napa-0.5.0 lib/napa/middleware/database_stats.rb
napa-0.4.3 lib/napa/middleware/database_stats.rb
napa-0.4.1 lib/napa/middleware/database_stats.rb
napa-0.4.0 lib/napa/middleware/database_stats.rb
napa-0.3.0 lib/napa/middleware/database_stats.rb