From b1a4907ede30e401188f3ddd5bef4c17eb82ada8 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Tue, 6 Jun 2023 14:55:08 -0700 Subject: [PATCH] fix: around_action not yielding is params are present (#7259) --- app/controllers/public/api/v1/portals/base_controller.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/controllers/public/api/v1/portals/base_controller.rb b/app/controllers/public/api/v1/portals/base_controller.rb index 21b605396..c5297e6e4 100644 --- a/app/controllers/public/api/v1/portals/base_controller.rb +++ b/app/controllers/public/api/v1/portals/base_controller.rb @@ -6,6 +6,8 @@ class Public::Api::V1::Portals::BaseController < PublicController def set_locale(&) switch_locale_with_portal(&) if params[:locale].present? switch_locale_with_article(&) if params[:article_slug].present? + + yield end def switch_locale_with_portal(&)