Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [9a93844aba44319d3c8487a554124beb00ccc267] by José Valim

Revision 9a93844aba44319d3c8487a554124beb00ccc267, committed by José Valim · May 30th, 2010 @ 02:53 PM

Add :only and :except to controllers MiddlewareStack. This allows
you to do the following:

class PostsController < ApplicationController

use AutheMiddleware, :except => [:index, :show]

end http://github.com/rails/rails/commit/9a93844aba44319d3c8487a554124b...

3 changed files

  • M actionpack/lib/action_controller/metal.rb
  • M actionpack/lib/action_dispatch/middleware/stack.rb
  • M actionpack/test/controller/new_base/middleware_test.rb