diff options
author | Johannes Schleifenbaum <johannes@js-webcoding.de> | 2012-12-07 14:55:56 +0100 |
---|---|---|
committer | Johannes Schleifenbaum <johannes@js-webcoding.de> | 2012-12-07 19:36:12 +0100 |
commit | eededdd4beeb995a270172bb1985228ee09dbd41 (patch) | |
tree | 7278899518a89d9b2ba79e8ed5f04124cc27f3a6 /app/observers/note_observer.rb | |
parent | 84465576d72a0ca98d2b9f6f4101d8c8e80bb1ef (diff) | |
download | gitlab-ce-eededdd4beeb995a270172bb1985228ee09dbd41.tar.gz |
fix notify_team on wall
Diffstat (limited to 'app/observers/note_observer.rb')
-rw-r--r-- | app/observers/note_observer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/observers/note_observer.rb b/app/observers/note_observer.rb index 083aa7058d5..fe01efcaac2 100644 --- a/app/observers/note_observer.rb +++ b/app/observers/note_observer.rb @@ -21,7 +21,7 @@ class NoteObserver < ActiveRecord::Observer # Notifies the whole team except the author of note def notify_team(note) # Note: wall posts are not "attached" to anything, so fall back to "Wall" - noteable_type = note.noteable_type || "Wall" + noteable_type = note.noteable_type.presence || "Wall" notify_method = "note_#{noteable_type.underscore}_email".to_sym if Notify.respond_to? notify_method |