forked from Gitlink/forgeplus
parent
814a1d9e6a
commit
1c59832abf
|
@ -123,7 +123,7 @@ class Project < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
def members_user_infos
|
def members_user_infos
|
||||||
members.joins(:roles).where("roles.name in ('Manager', 'Developer')").joins("left join users on members.user_id = users.id ").includes(:user).where("users.type = ?", "User")
|
members.joins(:roles).where("roles.name in ('Manager', 'Developer', 'Reporter')").joins("left join users on members.user_id = users.id ").includes(:user).where("users.type = ?", "User")
|
||||||
# members.joins("left join users on members.user_id = users.id").select("users.id", "users.login","users.firstname","users.lastname")
|
# members.joins("left join users on members.user_id = users.id").select("users.id", "users.login","users.firstname","users.lastname")
|
||||||
# .pluck("users.id", "users.login","users.lastname", "users.firstname")
|
# .pluck("users.id", "users.login","users.lastname", "users.firstname")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue