1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #21040 from aditya-kapoor/fix-typo

[ci skip] it should be protect_from_forgery
This commit is contained in:
Arthur Nogueira Neves 2015-07-27 18:12:09 +02:00
commit 0a780b1e85

View file

@ -20,7 +20,7 @@ module ActionController #:nodoc:
# Since HTML and JavaScript requests are typically made from the browser, we
# need to ensure to verify request authenticity for the web browser. We can
# use session-oriented authentication for these types of requests, by using
# the `protect_form_forgery` method in our controllers.
# the `protect_from_forgery` method in our controllers.
#
# GET requests are not protected since they don't have side effects like writing
# to the database and don't leak sensitive information. JavaScript requests are