diff --git a/app/controllers/apps_controller.rb b/app/controllers/apps_controller.rb index 04bea0a..eed03f0 100644 --- a/app/controllers/apps_controller.rb +++ b/app/controllers/apps_controller.rb @@ -102,7 +102,7 @@ class AppsController < ApplicationController # set the app's notification service if params[:app][:notification_service_attributes] && notification_type = params[:app][:notification_service_attributes][:type] available_notification_classes = [NotificationService] + NotificationService.subclasses - notification_class = available_notification_classes.detect{|c| c.name == tracker_type} + notification_class = available_notification_classes.detect{|c| c.name == notification_type} if !notification_class.nil? app.notification_service = notification_class.new(params[:app][:notification_service_attributes]) end -- libgit2 0.21.2