fix: around_action not yielding is params are present (#7259)

This commit is contained in:
Pranav Raj S
2023-06-06 14:55:08 -07:00
committed by GitHub
parent a01d81a7e1
commit b1a4907ede

View File

@@ -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(&)