BigW Consortium Gitlab

Commit 7bf64b26 by Marin Jankovski

Convert to array since Relation no longer returns an array.

parent 1dca950c
......@@ -217,6 +217,6 @@ class ProjectsController < ApplicationController
end
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
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