Browse files

Update usage notes to verify

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4996 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 4c966a0 commit 939017487d6fb3ad255f98079deadcef1e4054b0 @dhh dhh committed Sep 4, 2006
Showing with 3 additions and 0 deletions.
  1. +3 −0 actionpack/lib/action_controller/verification.rb
View
3 actionpack/lib/action_controller/verification.rb
@@ -34,6 +34,9 @@ def self.included(base) #:nodoc:
# :add_flash => { "alert" => "Failed to create your message" },
# :redirect_to => :category_url
#
+ # Note that these prerequisites are not business rules. They do not examine
+ # the content of the session or the parameters. That level of validation should
+ # be encapsulated by your domain model or helper methods in the controller.
module ClassMethods
# Verify the given actions so that if certain prerequisites are not met,
# the user is redirected to a different action. The +options+ parameter

0 comments on commit 9390174

Please sign in to comment.