Fix MR diff comments. Fix wiki comments loading error
This commit is contained in:
parent
caeb65b189
commit
9159be3a50
5 changed files with 11 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -28,7 +28,6 @@ class Wiki < ActiveRecord::Base
|
|||
end
|
||||
new_wiki
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
# == Schema Information
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue