diff options
author | Arthur Nogueira Neves <github@arthurnn.com> | 2015-07-27 18:12:09 +0200 |
---|---|---|
committer | Arthur Nogueira Neves <github@arthurnn.com> | 2015-07-27 18:12:09 +0200 |
commit | 0a780b1e8527c7d1bc764d6b6423966ff0381af4 (patch) | |
tree | 0fd52c0495ef19483e7533abb059c91425d994ba /actionpack/lib/action_controller | |
parent | 695937c23b0c283488060825c87b8402cd35d4f1 (diff) | |
parent | b4db53fad445ce1effd2cdc26c87deceafd378b0 (diff) | |
download | rails-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.rb | 2 |
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 |