diff options
author | Robert Speicher <rspeicher@gmail.com> | 2015-05-09 18:19:41 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2015-05-11 00:01:16 -0400 |
commit | b94c6d9f5b48c9ea42cb3098c9b8de8c47fa76a2 (patch) | |
tree | 56c11a3b3b3a6abaf737381be0e20f48de5b7ab2 /app/models/note.rb | |
parent | 686f6855c25ecfc09fdf199cb7e3fb7dd787ed28 (diff) | |
download | gitlab-ce-b94c6d9f5b48c9ea42cb3098c9b8de8c47fa76a2.tar.gz |
Check if `system` is truthy in `Note.cross_reference?`
Diffstat (limited to 'app/models/note.rb')
-rw-r--r-- | app/models/note.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/note.rb b/app/models/note.rb index f2470e5f399..6939a7e73a0 100644 --- a/app/models/note.rb +++ b/app/models/note.rb @@ -99,7 +99,7 @@ class Note < ActiveRecord::Base end def cross_reference? - SystemNoteService.cross_reference?(note) + system && SystemNoteService.cross_reference?(note) end def max_attachment_size |