From ba4056e112e4d0af837d228be8b2eda6059dc0ce Mon Sep 17 00:00:00 2001 From: Francois Chagnon Date: Wed, 26 Feb 2014 21:10:33 +0000 Subject: [PATCH] typo --- 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 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