Moving Salmon notifications to background processing, fixing mini-profiler
behaviour with Turbolinks enabled, optimizing Rabl for production
This commit is contained in:
		
					parent
					
						
							
								da4b675aca
							
						
					
				
			
			
				commit
				
					
						85b00d19b8
					
				
			
		
					 15 changed files with 49 additions and 35 deletions
				
			
		
							
								
								
									
										7
									
								
								app/workers/notification_worker.rb
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								app/workers/notification_worker.rb
									
										
									
									
									
										Normal file
									
								
							|  | @ -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 | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue