Commit c98da8247d37d2df9cbc3b8315c861d53f2d0560

Authored by Stephen Crosby
2 parents 666ce551 2989769c
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,7 +97,7 @@ protected
97 # set the app's notification service 97 # set the app's notification service
98 available_notification_classes = [NotificationService] + NotificationService.subclasses 98 available_notification_classes = [NotificationService] + NotificationService.subclasses
99 notification_class = available_notification_classes.detect { |c| c.name == notification_type } 99 notification_class = available_notification_classes.detect { |c| c.name == notification_type }
100 - if notification_class.present? 100 + if !notification_class.nil?
101 app.notification_service = notification_class.new(params[:app][:notification_service_attributes]) 101 app.notification_service = notification_class.new(params[:app][:notification_service_attributes])
102 end 102 end
103 end 103 end