This commit is contained in:
jomo
2013-10-20 23:38:51 +02:00
parent 7e20ab8de7
commit 49b2231047
2 changed files with 6 additions and 7 deletions
+3 -2
View File
@@ -67,8 +67,9 @@ require "open-uri"
yt
end
def link_user(user)
link_to user.name, user, class: "role #{user.role.name}"
def link_user(user, html_options = {})
html_options[:class] = "role #{user.role.name} #{html_options[:class]}"
link_to(user.name, user, html_options)
end