This commit is contained in:
Stella Rouzi 2014-08-13 14:37:15 +03:00
parent 1cbf78df3d
commit aeb28833f1
8 changed files with 39 additions and 30 deletions

View file

@ -196,4 +196,11 @@ module ApplicationHelper
end
return providers
end
# Receives a hash, generated from User model, function get_roles
# Outputs the roles of a user, including the conferences for which the user has the roles
# Eg. organizer(oSC13, oSC14), cfp(oSC12, oSC13)
def show_roles(roles)
roles.map { |x| x[0].titleize + ' ' + x[1] }.join ', '
end
end