From 2dcd79a1619ea8befc6ddeaf60c81cbb8265eacc Mon Sep 17 00:00:00 2001 From: yui-knk Date: Mon, 28 Sep 2015 21:15:54 +0900 Subject: [ci skip] Fix document of `ActionController::RequestForgeryProtection` * add `end` to end of class definition * add a blank line between explanation and example code --- actionpack/lib/action_controller/metal/request_forgery_protection.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionpack/lib/action_controller') 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: -- cgit v1.2.3