Skip to content

Instantly share code, notes, and snippets.

@tylerhunt
Created September 29, 2014 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tylerhunt/22eb20cf06cff820cea2 to your computer and use it in GitHub Desktop.
Save tylerhunt/22eb20cf06cff820cea2 to your computer and use it in GitHub Desktop.
Rack app object with middleware
class MyRackApp
def initialize(app)
stack = Rack::Buidler
# stack.use …
stack.run app
@app = stack.to_app
end
def call(env)
@app.call env
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment