Commit b192aa56 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
parent 9f2183f9
......@@ -190,6 +190,6 @@ class ProjectsController < ApplicationController
end
def sorted(users)
users.uniq.sort_by(&:username).map { |user| { username: user.username, name: user.name } }
users.uniq.compact.sort_by(&:username).map { |user| { username: user.username, name: user.name } }
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment