class Sinatra::Base
def middleware
def middleware if superclass.respond_to?(:middleware) superclass.middleware + @middleware else @middleware end end
def middleware if superclass.respond_to?(:middleware) superclass.middleware + @middleware else @middleware end end