Keep disabled accounts visible for toggling (#361)

This commit is contained in:
Juan José Mata
2025-11-21 20:02:25 +01:00
committed by GitHub
parent 25ac345f0b
commit 51d1cea51d
3 changed files with 28 additions and 2 deletions

View File

@@ -32,6 +32,10 @@ class Account < ApplicationRecord
visible.manual
}
scope :listable_manual, -> {
manual.where.not(status: :pending_deletion)
}
has_one_attached :logo
delegated_type :accountable, types: Accountable::TYPES, dependent: :destroy