Skip to content

Commit 231e67d

Browse files
committed
Splat options properly
1 parent 41541fe commit 231e67d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/helpers/users_helper.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ def self.user_profile_resource_limit
55
30
66
end
77

8-
def orcid_link(profile, *opts)
8+
def orcid_link(profile, **opts)
99
content_tag(:span) do
1010
if profile.orcid_authenticated?
1111
concat image_tag('ORCID-iD_icon_vector.svg', size: 16)
1212
concat ' '
13-
concat external_link(profile.orcid, profile.orcid_url, *opts)
13+
concat external_link(profile.orcid, profile.orcid_url, **opts)
1414
elsif profile.orcid.present?
1515
concat image_tag('ORCID-iD_icon_unauth_vector.svg', size: 16)
1616
concat ' '
17-
concat external_link(profile.orcid, profile.orcid_url, *opts)
17+
concat external_link(profile.orcid, profile.orcid_url, **opts)
1818
concat ' (Unauthenticated)'
1919
end
2020
end

0 commit comments

Comments
 (0)