module ActionController::RequestForgeryProtection::ClassMethods
def skip_forgery_protection(options = {})
skip_before_action :verify_authenticity_token
Turn off request forgery protection. This is a wrapper for:
def skip_forgery_protection(options = {}) skip_before_action :verify_authenticity_token, options.reverse_merge(raise: false) end