class ActionController::Middleware

def index

def index
  call(env)
end

def initialize(app)

def initialize(app)
  super()
  @_app = app
end

def new(app)

def new(app)
  ActionMiddleware.new(self, app)
end

def process(action)

def process(action)
  response = super
  self.status, self.headers, self.response_body = response if response.is_a?(Array)
  response
end