From 6643a4763f963664ab33b4c1f46fa7a1ac0bc758 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek Date: Tue, 9 May 2023 23:20:36 +0200 Subject: [PATCH] Make `target` a keyword argument for `user_screen_name` helper Co-authored-by: nilsding --- app/helpers/user_helper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/user_helper.rb b/app/helpers/user_helper.rb index 5d487409..0f027e52 100644 --- a/app/helpers/user_helper.rb +++ b/app/helpers/user_helper.rb @@ -12,7 +12,7 @@ module UserHelper if url return user_path(user) if link_only - return profile_link(user, "_top") + return profile_link(user, target: "_top") end user.profile.safe_name.strip end @@ -23,7 +23,7 @@ module UserHelper private - def profile_link(user, target = nil) + def profile_link(user, target: nil) link_to(user.profile.safe_name, user_path(user), class: ("user--banned" if user.banned?).to_s, target:) end