Commit 7bf64b26 authored by Marin Jankovski's avatar Marin Jankovski

Convert to array since Relation no longer returns an array.

parent 1dca950c
...@@ -217,6 +217,6 @@ class ProjectsController < ApplicationController ...@@ -217,6 +217,6 @@ class ProjectsController < ApplicationController
end end
def sorted(users) def sorted(users)
users.uniq.compact.sort_by(&:username).map { |user| { username: user.username, name: user.name } } users.uniq.to_a.compact.sort_by(&:username).map { |user| { username: user.username, name: user.name } }
end end
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