diff options
Diffstat (limited to 'app/models/note.rb')
| -rw-r--r-- | app/models/note.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index 48916951e3b..0027c57b63b 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -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? |
