Browse files

Slight doc tweak to #prepend_filter. Closes #6493 [Jeremy Voorhis]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5862 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 6c914d9 commit b51727aa496127810be66d665cf8c82a78a99b1a @technoweenie technoweenie committed Jan 5, 2007
Showing with 4 additions and 2 deletions.
  1. +2 −0 actionpack/CHANGELOG
  2. +2 −2 actionpack/lib/action_controller/filters.rb
View
2 actionpack/CHANGELOG
@@ -1,5 +1,7 @@
*SVN*
+* Slight doc tweak to #prepend_filter. Closes #6493 [Jeremy Voorhis]
+
* Add more extensive documentation to the AssetTagHelper. Closes #6452 [Bob Silva]
* Clean up multiple calls to #stringify_keys in TagHelper, add better documentation and testing for TagHelper. Closes #6394 [Bob Silva]
View
4 actionpack/lib/action_controller/filters.rb
@@ -81,10 +81,10 @@ def self.included(base)
# can use <tt>prepend_before_filter</tt> and <tt>prepend_after_filter</tt>. Filters added by these methods will be put at the
# beginning of their respective chain and executed before the rest. For example:
#
- # class ShoppingController
+ # class ShoppingController < ActionController::Base
# before_filter :verify_open_shop
#
- # class CheckoutController
+ # class CheckoutController < ShoppingController
# prepend_before_filter :ensure_items_in_cart, :ensure_items_in_stock
#
# The filter chain for the CheckoutController is now <tt>:ensure_items_in_cart, :ensure_items_in_stock,</tt>

0 comments on commit b51727a

Please sign in to comment.