Fix MR diff comments. Fix wiki comments loading error

This commit is contained in:
randx 2012-09-15 09:49:21 +03:00
parent caeb65b189
commit 9159be3a50
5 changed files with 11 additions and 4 deletions

View file

@ -171,6 +171,10 @@ class Project < ActiveRecord::Base
end
end
def wiki_notes
Note.where(noteable_id: wikis.map(&:id), noteable_type: 'Wiki', project_id: self.id)
end
def project_id
self.id
end