Skip to content
Snippets Groups Projects
Commit 61833bcb authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

fix app crash if author is missing

parent cc2484c3
No related branches found
No related tags found
Loading
Loading
@@ -11,7 +11,9 @@ class NoteObserver < ActiveRecord::Observer
Loading
@@ -11,7 +11,9 @@ class NoteObserver < ActiveRecord::Observer
notify_team(note) notify_team(note)
elsif note.notify_author elsif note.notify_author
# Notify only author of resource # Notify only author of resource
Notify.delay.note_commit_email(note.commit_author.id, note.id) if note.commit_author
Notify.delay.note_commit_email(note.commit_author.id, note.id)
end
else else
# Otherwise ignore it # Otherwise ignore it
nil nil
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment