diff options
author | Rich Healey <richard.healey@99designs.com> | 2012-05-18 16:52:52 +1000 |
---|---|---|
committer | Rich Healey <richard.healey@99designs.com> | 2012-05-18 16:52:52 +1000 |
commit | 21bff1d66477f5cf27bc7ada675866d810116d23 (patch) | |
tree | 161c0afae3a426d024509371d84ffd959e673e8b /guides | |
parent | 48acd29adbd86cec54eec6760dd317f4901125aa (diff) | |
download | rails-21bff1d66477f5cf27bc7ada675866d810116d23.tar.gz rails-21bff1d66477f5cf27bc7ada675866d810116d23.tar.bz2 rails-21bff1d66477f5cf27bc7ada675866d810116d23.zip |
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.
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/rails_on_rack.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/guides/source/rails_on_rack.textile b/guides/source/rails_on_rack.textile index ff862273fd..4105641298 100644 --- a/guides/source/rails_on_rack.textile +++ b/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: |