Sha256: efda07e102e51de9786fac685e7107fcaf61a78fb3339e3c1b27702058b4b73c

Contents?: true

Size: 290 Bytes

Versions: 2

Compression:

Stored size: 290 Bytes

Contents

module NimbleNodes
  class Middleware
    def initialize(app)
      @app = app
    end


    def call(env)
      @report = NimbleNodes::Report.new(env)
      @report.post if @report.post?
      # now, execute the request using our Rails app
      response = @app.call(env)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nimble_nodes-0.1.3 lib/nimble_nodes/middleware.rb
nimble_nodes-0.1.2 lib/nimble_nodes/middleware.rb