From b4fbd1fa998bf2c61da81bf3c9b0e6be76661976 Mon Sep 17 00:00:00 2001 From: komagata Date: Mon, 16 Dec 2024 07:12:14 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B9=E3=83=86=E3=83=BC=E3=82=B8=E3=83=B3?= =?UTF-8?q?=E3=82=B0=E7=92=B0=E5=A2=83=E3=81=A7=E4=BC=91=E4=BC=9A=E3=81=A7?= =?UTF-8?q?=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ステージング環境ではStripe関連が動かないようにした --- app/controllers/hibernation_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/hibernation_controller.rb b/app/controllers/hibernation_controller.rb index 1b1a649dfd9..3f41f6153d0 100644 --- a/app/controllers/hibernation_controller.rb +++ b/app/controllers/hibernation_controller.rb @@ -39,7 +39,7 @@ def update_hibernated_at! end def destroy_subscription! - return nil unless Rails.env.production? + return nil if !Rails.env.production? || staging? Subscription.new.destroy(current_user.subscription_id) if current_user.subscription_id end