diff options
| author | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-11-22 02:57:22 +0100 |
|---|---|---|
| committer | Riyad Preukschas <riyad@informatik.uni-bremen.de> | 2012-12-03 22:51:56 +0100 |
| commit | c4a7824a8c6487b24379f7f85c26f182bbc1dee9 (patch) | |
| tree | c23fdbf95bbcd8b3a46e2eaae6021e62a0bc3ff3 /app/models/note.rb | |
| parent | 140652e9b019addaf7022e18b6816ecb36eee80c (diff) | |
| download | gitlab-ce-c4a7824a8c6487b24379f7f85c26f182bbc1dee9.tar.gz | |
Fix wall notes
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? |
