From 529dec09a3efeea30f8c780780e6baf13ff6a751 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Thu, 2 Mar 2017 04:38:33 +0000 Subject: [PATCH] don't commit activity service --- app/services/activity_service.rb | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 app/services/activity_service.rb diff --git a/app/services/activity_service.rb b/app/services/activity_service.rb deleted file mode 100644 index 9d3009ff..00000000 --- a/app/services/activity_service.rb +++ /dev/null @@ -1,18 +0,0 @@ -# frozen_string_literal: true -class ActivityService - - def self.send_activity_for_followers(map, reason_filter = nil) - follows = FollowService.get_follows_for_entity(map, nil, reason_filter) - - # generate the full set of activity here - - follows.each{|follow| - # check here whether this person needs to receive anything - # related to the activity that occurred on the map - - body = NotificationService.renderer.render(template: 'template', locals: {}, layout: false) - follow.user.notify('subject', body, event, false, MAP_ACTIVITY, follow.user.emails_allowed, ??) - } - end - -end \ No newline at end of file