Commit 2989769cd892ff056c744c093797be303ea512b4

Authored by Marvin Frederickson
1 parent 666ce551
Exists in master

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