Check if `system` is truthy in `Note.cross_reference?`
This commit is contained in:
parent
686f6855c2
commit
b94c6d9f5b
|
@ -99,7 +99,7 @@ class Note < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def cross_reference?
|
def cross_reference?
|
||||||
SystemNoteService.cross_reference?(note)
|
system && SystemNoteService.cross_reference?(note)
|
||||||
end
|
end
|
||||||
|
|
||||||
def max_attachment_size
|
def max_attachment_size
|
||||||
|
|
Loading…
Reference in New Issue