加个数组判断

This commit is contained in:
yanxd 2014-03-30 20:28:16 +08:00
parent 850ff6194f
commit d2ebfca314
1 changed files with 2 additions and 1 deletions

View File

@ -258,7 +258,8 @@ module ProjectsHelper
end
end
def rolesToLanguage rolesArray
def rolesToLanguage rolesArray
rolesArray = ([] << rolesArray) unless rolesArray.is_a?(Array)
rolesArray.map{ |roleName|
case roleName
when "Manager"