加个数组判断
This commit is contained in:
parent
850ff6194f
commit
d2ebfca314
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue