From 22a45237be32b6af1ad776900a4c2b8962d8f632 Mon Sep 17 00:00:00 2001 From: Mojca Lorber Date: Mon, 22 Jun 2020 15:41:24 +0200 Subject: [PATCH] Remove doubled code --- app/models/activity.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/models/activity.rb b/app/models/activity.rb index fa7951f62..09538c687 100644 --- a/app/models/activity.rb +++ b/app/models/activity.rb @@ -48,8 +48,7 @@ class Activity < ApplicationRecord } scope :repositories_joins, lambda { - joins("LEFT JOIN repositories ON subject_type = 'RepositoryBase' AND subject_id = repositories.id " \ - "AND repositories.archived != TRUE") + joins("LEFT JOIN repositories ON subject_type = 'RepositoryBase' AND subject_id = repositories.id") } scope :reports_joins, lambda {