diff options
author | yui-knk <spiketeika@gmail.com> | 2015-09-28 21:15:54 +0900 |
---|---|---|
committer | yui-knk <spiketeika@gmail.com> | 2015-09-28 21:15:54 +0900 |
commit | 2dcd79a1619ea8befc6ddeaf60c81cbb8265eacc (patch) | |
tree | d460c5267d65debc587a90a9c83678bf1f789b89 | |
parent | 82f69a7a33bf61d7ae9b49c18176612ef6fe35c3 (diff) | |
download | rails-2dcd79a1619ea8befc6ddeaf60c81cbb8265eacc.tar.gz rails-2dcd79a1619ea8befc6ddeaf60c81cbb8265eacc.tar.bz2 rails-2dcd79a1619ea8befc6ddeaf60c81cbb8265eacc.zip |
[ci skip] Fix document of `ActionController::RequestForgeryProtection`
* add `end` to end of class definition
* add a blank line between explanation and example code
-rw-r--r-- | actionpack/lib/action_controller/metal/request_forgery_protection.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/metal/request_forgery_protection.rb b/actionpack/lib/action_controller/metal/request_forgery_protection.rb index 5674eef67b..64f6f7cf51 100644 --- a/actionpack/lib/action_controller/metal/request_forgery_protection.rb +++ b/actionpack/lib/action_controller/metal/request_forgery_protection.rb @@ -90,8 +90,10 @@ module ActionController #:nodoc: # # class FooController < ApplicationController # protect_from_forgery except: :index + # end # # You can disable forgery protection on controller by skipping the verification before_action: + # # skip_before_action :verify_authenticity_token # # Valid Options: |