Skip to content

Commit

Permalink
Merge pull request #49374 from yykamei/add_doc_for_protect_from_forgery
Browse files Browse the repository at this point in the history
Add notice to documentation for protect_from_forgery's :with option
  • Loading branch information
rafaelfranca committed Sep 29, 2023
2 parents d7b3951 + f7cc8b3 commit 180e601
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ module ClassMethods
#
# If you need to add verification to the beginning of the callback chain, use <tt>prepend: true</tt>.
# * <tt>:with</tt> - Set the method to handle unverified request.
# Note if <tt>default_protect_from_forgery</tt> is true, Rails call protect_from_forgery with <tt>with :exception</tt>.
#
# Built-in unverified request handling methods are:
# * <tt>:exception</tt> - Raises ActionController::InvalidAuthenticityToken exception.
Expand Down

0 comments on commit 180e601

Please sign in to comment.