From 3996ffc85c1fe3a912db14cbb317158fe9bcd8e2 Mon Sep 17 00:00:00 2001 From: Manuel Bustillo Date: Sat, 7 Dec 2024 22:53:30 +0100 Subject: [PATCH] Fix tenant-related error retrieving captcha --- app/controllers/captcha_controller.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/controllers/captcha_controller.rb b/app/controllers/captcha_controller.rb index 428328d..4b7234a 100644 --- a/app/controllers/captcha_controller.rb +++ b/app/controllers/captcha_controller.rb @@ -10,4 +10,10 @@ class CaptchaController < ApplicationController media_url: media_captcha_index_url(id:) }, status: :created end + + private + + def set_tenant + ActsAsTenant.current_tenant = nil + end end