rails/rails — pull request #6372 by richo (2012-05-18 06:10:19+00:00)
Title: Add some common Array methods to the middleware stack

The docs suggest that the middleware stack is an Array, and yet some
common Array methods do not work (#unshift #shift #pop and #push) are
the most common array operations that are not implemented that I can
think of.

To this end, I have implemented them simply by delegating to the
middlewares Array directly

( This commit also fixes two whitespace issues, I will rebase them out if they shouldn't get to piggyback)