##// END OF EJS Templates
Code cleanup....
Jean-Philippe Lang -
r13244:4e69edb5b82f
parent child
Show More
@@ -283,8 +283,7 class Repository < ActiveRecord::Base
283
283
284 # Returns an array of committers usernames and associated user_id
284 # Returns an array of committers usernames and associated user_id
285 def committers
285 def committers
286 @committers ||= Changeset.connection.select_rows(
286 @committers ||= Changeset.where(:repository_id => id).uniq.pluck(:committer, :user_id)
287 "SELECT DISTINCT committer, user_id FROM #{Changeset.table_name} WHERE repository_id = #{id}")
288 end
287 end
289
288
290 # Maps committers username to a user ids
289 # Maps committers username to a user ids
General Comments 0
You need to be logged in to leave comments. Login now