From 2989769cd892ff056c744c093797be303ea512b4 Mon Sep 17 00:00:00 2001 From: Marvin Frederickson Date: Fri, 19 Feb 2016 23:59:01 -0900 Subject: [PATCH] fixes #1040 --- app/controllers/apps_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/apps_controller.rb b/app/controllers/apps_controller.rb index 2d5205a..5dbc00c 100644 --- a/app/controllers/apps_controller.rb +++ b/app/controllers/apps_controller.rb @@ -97,7 +97,7 @@ protected # set the app's notification service available_notification_classes = [NotificationService] + NotificationService.subclasses notification_class = available_notification_classes.detect { |c| c.name == notification_type } - if notification_class.present? + if !notification_class.nil? app.notification_service = notification_class.new(params[:app][:notification_service_attributes]) end end -- libgit2 0.21.2