From 6895135977e3d4fbe4493b1a5593aa4f115f4020 Mon Sep 17 00:00:00 2001 From: secretpray Date: Mon, 12 Jan 2026 18:44:35 +0200 Subject: [PATCH] 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 --- app/controllers/notifications/unsubscribes_controller.rb | 2 +- saas/app/controllers/stripe/webhooks_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/notifications/unsubscribes_controller.rb b/app/controllers/notifications/unsubscribes_controller.rb index f7486d91e..d1842b169 100644 --- a/app/controllers/notifications/unsubscribes_controller.rb +++ b/app/controllers/notifications/unsubscribes_controller.rb @@ -1,6 +1,6 @@ class Notifications::UnsubscribesController < ApplicationController allow_unauthenticated_access - skip_before_action :verify_authenticity_token + skip_forgery_protection before_action :set_user diff --git a/saas/app/controllers/stripe/webhooks_controller.rb b/saas/app/controllers/stripe/webhooks_controller.rb index cdfb6bcec..13dcd4699 100644 --- a/saas/app/controllers/stripe/webhooks_controller.rb +++ b/saas/app/controllers/stripe/webhooks_controller.rb @@ -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