summaryrefslogtreecommitdiff
path: root/app/models/network/graph.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/network/graph.rb')
-rw-r--r--app/models/network/graph.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/network/graph.rb b/app/models/network/graph.rb
index 9da454125eb..560ff861105 100644
--- a/app/models/network/graph.rb
+++ b/app/models/network/graph.rb
@@ -27,7 +27,7 @@ module Network
@project
.notes
- .where('noteable_type = ?', 'Commit')
+ .where(noteable_type: 'Commit')
.group('notes.commit_id')
.select('notes.commit_id, count(notes.id) as note_count')
.each do |item|