Created
February 16, 2011 19:12
-
-
Save amster/829941 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is used by Rack-based servers to start the application. | |
require ::File.expand_path('../config/environment', __FILE__) | |
class TestMiddleware | |
def initialize(app) | |
@app = app | |
end | |
def call(env) | |
puts "------------------TestMiddleware--------------" | |
puts env.to_yaml | |
@app.call(env) | |
end | |
end | |
run TestMiddleware.new(TestApp::Application) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment