Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (23 sloc) 421 Bytes
module Rails
class Application
def self.config
@config ||= Configuration.new
end
def self.config=(config)
@config = config
end
def config
self.class.config
end
def routes
ActionController::Routing::Routes
end
def middleware
config.middleware
end
def call(env)
@app ||= middleware.build(routes)
@app.call(env)
end
end
end
Something went wrong with that request. Please try again.