Permalink
Browse files

The middleware stack is compliant with Enumarable and bits of Array

Try to clarify the docs so that it's more clear how the stack behaves.
  • Loading branch information...
1 parent 48acd29 commit 21bff1d66477f5cf27bc7ada675866d810116d23 Rich Healey committed May 18, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 guides/source/rails_on_rack.textile
@@ -152,9 +152,9 @@ You can swap an existing middleware in the middleware stack using +config.middle
config.middleware.swap ActionDispatch::ShowExceptions, Lifo::ShowExceptions
</ruby>
-h5. Middleware Stack is an Array
+h5. Middleware Stack is an Enumerable
-The middleware stack behaves just like a normal +Array+. You can use any +Array+ methods to insert, reorder, or remove items from the stack. Methods described in the section above are just convenience methods.
+The middleware stack behaves just like a normal +Enumerable+. You can use any +Enumerable+ methods to manipulate or interrogate the stack. The middleware stack also implements many +Array+ methods, including <tt>[] unshift delete</tt>. Methods described in the section above are just convenience methods.
Append following lines to your application configuration:

0 comments on commit 21bff1d

Please sign in to comment.