From 5cd472bb9f62d9d1ea7bb78fc42e727b4df6d33d Mon Sep 17 00:00:00 2001 From: Sojan Date: Thu, 8 Dec 2022 18:40:37 +0300 Subject: [PATCH] chore: fix rubocop --- app/controllers/concerns/switch_locale.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/concerns/switch_locale.rb b/app/controllers/concerns/switch_locale.rb index 1c7bad208..744a70da9 100644 --- a/app/controllers/concerns/switch_locale.rb +++ b/app/controllers/concerns/switch_locale.rb @@ -3,7 +3,7 @@ module SwitchLocale private - def switch_locale(&action) + def switch_locale(&) # priority is for locale set in query string (mostly for widget/from js sdk) locale ||= locale_from_params # if locale is not set in account, let's use DEFAULT_LOCALE env variable