From 85b00d19b840bae98322c2372e8e0e3ebd66f2e0 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 26 Mar 2016 13:42:10 +0100 Subject: Moving Salmon notifications to background processing, fixing mini-profiler behaviour with Turbolinks enabled, optimizing Rabl for production --- app/workers/notification_worker.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 app/workers/notification_worker.rb (limited to 'app/workers') diff --git a/app/workers/notification_worker.rb b/app/workers/notification_worker.rb new file mode 100644 index 000000000..129512a5a --- /dev/null +++ b/app/workers/notification_worker.rb @@ -0,0 +1,7 @@ +class NotificationWorker + include Sidekiq::Worker + + def perform(stream_entry_id, target_account_id) + SendInteractionService.new.(StreamEntry.find(stream_entry_id), Account.find(target_account_id)) + end +end -- cgit