mirror of
https://github.com/we-promise/sure.git
synced 2026-04-25 06:54:07 +00:00
Keep disabled accounts visible for toggling (#361)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user