Fix wall notes
This commit is contained in:
parent
140652e9b0
commit
c4a7824a8c
5 changed files with 29 additions and 4 deletions
|
@ -115,6 +115,10 @@ class Note < ActiveRecord::Base
|
|||
for_merge_request? && for_diff_line?
|
||||
end
|
||||
|
||||
def for_wall?
|
||||
noteable_type.blank?
|
||||
end
|
||||
|
||||
# override to return commits, which are not active record
|
||||
def noteable
|
||||
if for_commit?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue