From 734306612e2ec5fe1c978d37e401f81beb79e93b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20=C5=A0im=C3=A1nek?= Date: Tue, 6 Jan 2015 00:37:37 +0100 Subject: Improve protect_from_forgery documentation. [ci skip]. --- .../lib/action_controller/metal/request_forgery_protection.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actionpack/lib/action_controller/metal/request_forgery_protection.rb') diff --git a/actionpack/lib/action_controller/metal/request_forgery_protection.rb b/actionpack/lib/action_controller/metal/request_forgery_protection.rb index 0932f03916..b9a1e7d242 100644 --- a/actionpack/lib/action_controller/metal/request_forgery_protection.rb +++ b/actionpack/lib/action_controller/metal/request_forgery_protection.rb @@ -80,13 +80,13 @@ module ActionController #:nodoc: # class FooController < ApplicationController # protect_from_forgery except: :index # - # You can disable CSRF protection on controller by skipping the verification before_action: + # You can disable forgery protection on controller by skipping the verification before_action: # skip_before_action :verify_authenticity_token # # Valid Options: # - # * :only/:except - Passed to the before_action call. Set which actions are verified. - # * :if/:unless - Passed to the before_action call. Set when actions are verified. + # * :only/:except - Only apply forgery protection to a subset of actions. Like only: [ :create, :create_all ]. + # * :if/:unless - Turn off the forgery protection entirely depending on the passed proc or method reference. # * :with - Set the method to handle unverified request. # # Valid unverified request handling methods are: -- cgit v1.2.3