We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d2391f3 + a7bbbc1 commit 40b1c60Copy full SHA for 40b1c60
actionpack/lib/action_controller/metal/request_forgery_protection.rb
@@ -111,9 +111,11 @@ module ClassMethods
111
# protect_from_forgery except: :index
112
# end
113
#
114
- # You can disable forgery protection on controller by skipping the verification before_action:
+ # You can disable forgery protection on a controller using skip_forgery_protection:
115
116
- # skip_before_action :verify_authenticity_token
+ # class BarController < ApplicationController
117
+ # skip_forgery_protection
118
+ # end
119
120
# Valid Options:
121
0 commit comments