Merge pull request #10510 from think602/master
[ci skip] document protect_against_forgery? method
This commit is contained in:
commit
0593c00dfb
@ -199,6 +199,7 @@ def form_authenticity_param
|
||||
params[request_forgery_protection_token]
|
||||
end
|
||||
|
||||
# Checks if the controller allows forgery protection.
|
||||
def protect_against_forgery?
|
||||
allow_forgery_protection
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user