mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-02 13:49:42 +00:00
Code cleanup.
git-svn-id: http://svn.redmine.org/redmine/trunk@13626 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
65a62431dd
commit
4e69edb5b8
@ -283,8 +283,7 @@ class Repository < ActiveRecord::Base
|
||||
|
||||
# Returns an array of committers usernames and associated user_id
|
||||
def committers
|
||||
@committers ||= Changeset.connection.select_rows(
|
||||
"SELECT DISTINCT committer, user_id FROM #{Changeset.table_name} WHERE repository_id = #{id}")
|
||||
@committers ||= Changeset.where(:repository_id => id).uniq.pluck(:committer, :user_id)
|
||||
end
|
||||
|
||||
# Maps committers username to a user ids
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user