Skip to content

Commit

Permalink
Update docs to encourage use of wrapper method
Browse files Browse the repository at this point in the history
Co-authored-by: Jonathan Hefner <jonathan@hefner.pro>
  • Loading branch information
swanson and jonathanhefner committed Dec 16, 2022
1 parent 61fdd53 commit a7bbbc1
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -111,9 +111,11 @@ module ClassMethods
# protect_from_forgery except: :index
# end
#
# You can disable forgery protection on controller by skipping the verification before_action:
# You can disable forgery protection on a controller using skip_forgery_protection:
#
# skip_before_action :verify_authenticity_token
# class BarController < ApplicationController
# skip_forgery_protection
# end
#
# Valid Options:
#
Expand Down

0 comments on commit a7bbbc1

Please sign in to comment.