fix: around_action not yielding is params are present (#7259)
This commit is contained in:
@@ -6,6 +6,8 @@ class Public::Api::V1::Portals::BaseController < PublicController
|
|||||||
def set_locale(&)
|
def set_locale(&)
|
||||||
switch_locale_with_portal(&) if params[:locale].present?
|
switch_locale_with_portal(&) if params[:locale].present?
|
||||||
switch_locale_with_article(&) if params[:article_slug].present?
|
switch_locale_with_article(&) if params[:article_slug].present?
|
||||||
|
|
||||||
|
yield
|
||||||
end
|
end
|
||||||
|
|
||||||
def switch_locale_with_portal(&)
|
def switch_locale_with_portal(&)
|
||||||
|
|||||||
Reference in New Issue
Block a user