aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller
diff options
context:
space:
mode:
authorArthur Nogueira Neves <github@arthurnn.com>2015-07-27 18:12:09 +0200
committerArthur Nogueira Neves <github@arthurnn.com>2015-07-27 18:12:09 +0200
commit0a780b1e8527c7d1bc764d6b6423966ff0381af4 (patch)
tree0fd52c0495ef19483e7533abb059c91425d994ba /actionpack/lib/action_controller
parent695937c23b0c283488060825c87b8402cd35d4f1 (diff)
parentb4db53fad445ce1effd2cdc26c87deceafd378b0 (diff)
downloadrails-0a780b1e8527c7d1bc764d6b6423966ff0381af4.tar.gz
rails-0a780b1e8527c7d1bc764d6b6423966ff0381af4.tar.bz2
rails-0a780b1e8527c7d1bc764d6b6423966ff0381af4.zip
Merge pull request #21040 from aditya-kapoor/fix-typo
[ci skip] it should be protect_from_forgery
Diffstat (limited to 'actionpack/lib/action_controller')
-rw-r--r--actionpack/lib/action_controller/metal/request_forgery_protection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/request_forgery_protection.rb b/actionpack/lib/action_controller/metal/request_forgery_protection.rb
index 4cb634477e..9e09242872 100644
--- a/actionpack/lib/action_controller/metal/request_forgery_protection.rb
+++ b/actionpack/lib/action_controller/metal/request_forgery_protection.rb
@@ -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