Fix deprecation warnings for skip_before_action :verify_authenticity_token

Replace deprecated `skip_before_action :verify_authenticity_token` with
`skip_forgery_protection` to resolve Rails deprecation warnings.

Changes:
- app/controllers/notifications/unsubscribes_controller.rb
- saas/app/controllers/stripe/webhooks_controller.rb
This commit is contained in:
secretpray
2026-01-12 18:44:35 +02:00
parent 7c7b4eb621
commit 6895135977
2 changed files with 2 additions and 2 deletions
@@ -1,6 +1,6 @@
class Notifications::UnsubscribesController < ApplicationController
allow_unauthenticated_access
skip_before_action :verify_authenticity_token
skip_forgery_protection
before_action :set_user
@@ -1,7 +1,7 @@
class Stripe::WebhooksController < ApplicationController
allow_unauthenticated_access
skip_before_action :require_account
skip_before_action :verify_authenticity_token
skip_forgery_protection
def create
if event = verify_webhook_signature