Skip to content

Commit a7bbbc1

Browse files
Update docs to encourage use of wrapper method
Co-authored-by: Jonathan Hefner <[email protected]>
1 parent 61fdd53 commit a7bbbc1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

actionpack/lib/action_controller/metal/request_forgery_protection.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,11 @@ module ClassMethods
111111
# protect_from_forgery except: :index
112112
# end
113113
#
114-
# You can disable forgery protection on controller by skipping the verification before_action:
114+
# You can disable forgery protection on a controller using skip_forgery_protection:
115115
#
116-
# skip_before_action :verify_authenticity_token
116+
# class BarController < ApplicationController
117+
# skip_forgery_protection
118+
# end
117119
#
118120
# Valid Options:
119121
#

0 commit comments

Comments
 (0)