Module: EffectiveCpdAudit::ClassMethods

Defined in:
app/models/concerns/effective_cpd_audit.rb

Instance Method Summary collapse

Instance Method Details

#admin_process_request_optionsObject



18
19
20
# File 'app/models/concerns/effective_cpd_audit.rb', line 18

def admin_process_request_options
  ['Granted', 'Denied']
end

#chat_permissionsObject



38
39
40
# File 'app/models/concerns/effective_cpd_audit.rb', line 38

def chat_permissions
  ['Can send messages until closed', 'Always send messages', 'Never send messages']
end

#done_statesObject



22
23
24
# File 'app/models/concerns/effective_cpd_audit.rb', line 22

def done_states
  [:exemption_granted, :closed]
end

#effective_cpd_audit?Boolean

Returns:

  • (Boolean)


16
# File 'app/models/concerns/effective_cpd_audit.rb', line 16

def effective_cpd_audit?; true; end

#waiting_on_admin_statesObject



26
27
28
# File 'app/models/concerns/effective_cpd_audit.rb', line 26

def waiting_on_admin_states
  [:conflicted, :exemption_requested, :extension_requested, :submitted, :reviewed]
end

#waiting_on_auditee_statesObject



34
35
36
# File 'app/models/concerns/effective_cpd_audit.rb', line 34

def waiting_on_auditee_states
  [:opened, :started, :conflicted_resolved, :exemption_denied, :extension_granted, :extension_denied]
end

#waiting_on_reviewers_statesObject



30
31
32
# File 'app/models/concerns/effective_cpd_audit.rb', line 30

def waiting_on_reviewers_states
  [:completed]
end