Browse Source

Scope are auto created by enums

pull/72/head
baarkerlounger 4 years ago
parent
commit
82942ab475
  1. 4
      app/models/case_log.rb

4
app/models/case_log.rb

@ -165,10 +165,6 @@ class CaseLog < ApplicationRecord
include Discard::Model
include SoftValidations
default_scope -> { kept }
scope :not_started, -> { where(status: "not_started") }
scope :in_progress, -> { where(status: "in_progress") }
scope :not_completed, -> { where.not(status: "completed") }
scope :completed, -> { where(status: "completed") }
validate :instance_validations
before_save :update_status!

Loading…
Cancel
Save