From 147fe6d566c5486ffaa95bd9425b43c841545226 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Thu, 9 Feb 2017 15:36:54 +0000 Subject: [PATCH] temporary fix --- app/services/notification_service.rb | 6 +++--- app/views/notifications/index.html.erb | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app/services/notification_service.rb b/app/services/notification_service.rb index 660e71ce..383ab080 100644 --- a/app/services/notification_service.rb +++ b/app/services/notification_service.rb @@ -39,13 +39,13 @@ class NotificationService def self.text_for_notification(notification) if notification.notification_code == MAILBOXER_CODE_ACCESS_REQUEST - map = notification.notified_object&.map + map = notification.notified_object.map 'wants permission to map with you on ' + map.name + '  
Offer a response
' elsif notification.notification_code == MAILBOXER_CODE_ACCESS_APPROVED - map = notification.notified_object&.map + map = notification.notified_object.map 'granted your request to edit map ' + map.name + '' elsif notification.notification_code == MAILBOXER_CODE_INVITE_TO_EDIT - map = notification.notified_object&.map + map = notification.notified_object.map 'gave you edit access to map ' + map.name + '' elsif notification.notification_code == MAILBOXER_CODE_MESSAGE_FROM_DEVS notification.subject diff --git a/app/views/notifications/index.html.erb b/app/views/notifications/index.html.erb index 6f66eccd..f27c1fef 100644 --- a/app/views/notifications/index.html.erb +++ b/app/views/notifications/index.html.erb @@ -7,7 +7,8 @@

Notifications