|
|
@ -28,6 +28,8 @@ end |
|
|
|
class CaseLog < ApplicationRecord |
|
|
|
class CaseLog < ApplicationRecord |
|
|
|
include Discard::Model |
|
|
|
include Discard::Model |
|
|
|
default_scope -> { kept } |
|
|
|
default_scope -> { kept } |
|
|
|
|
|
|
|
scope :in_progress, -> { where(status: "in_progress") } |
|
|
|
|
|
|
|
scope :completed, -> { where(status: "completed") } |
|
|
|
|
|
|
|
|
|
|
|
validate :instance_validations |
|
|
|
validate :instance_validations |
|
|
|
before_save :update_status! |
|
|
|
before_save :update_status! |
|
|
|