Commit c98da8247d37d2df9cbc3b8315c861d53f2d0560
Exists in
master
Merge pull request #1055 from mfrederickson/fix-notification-class-detection
fixes #1040
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/apps_controller.rb
... | ... | @@ -97,7 +97,7 @@ protected |
97 | 97 | # set the app's notification service |
98 | 98 | available_notification_classes = [NotificationService] + NotificationService.subclasses |
99 | 99 | notification_class = available_notification_classes.detect { |c| c.name == notification_type } |
100 | - if notification_class.present? | |
100 | + if !notification_class.nil? | |
101 | 101 | app.notification_service = notification_class.new(params[:app][:notification_service_attributes]) |
102 | 102 | end |
103 | 103 | end | ... | ... |