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