mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 12:39:53 +01:00
Make target
a keyword argument for user_screen_name
helper
Co-authored-by: nilsding <nilsding@nilsding.org>
This commit is contained in:
parent
46c2412ad8
commit
6643a4763f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue