mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 10:14:17 +08:00
Remove doubled code
This commit is contained in:
parent
be19190ff1
commit
22a45237be
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue