Remove doubled code

This commit is contained in:
Mojca Lorber 2020-06-22 15:41:24 +02:00
parent be19190ff1
commit 22a45237be

View file

@ -48,8 +48,7 @@ class Activity < ApplicationRecord
} }
scope :repositories_joins, lambda { scope :repositories_joins, lambda {
joins("LEFT JOIN repositories ON subject_type = 'RepositoryBase' AND subject_id = repositories.id " \ joins("LEFT JOIN repositories ON subject_type = 'RepositoryBase' AND subject_id = repositories.id")
"AND repositories.archived != TRUE")
} }
scope :reports_joins, lambda { scope :reports_joins, lambda {