Module: EffectiveCpdAudit::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

#admin_process_request_optionsObject



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

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

#chat_permissionsObject



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

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

#done_statesObject



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

def done_states
  [:exemption_granted, :closed]
end

#effective_cpd_audit?Boolean

Returns:

  • (Boolean)


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

def effective_cpd_audit?; true; end

#waiting_on_admin_statesObject



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

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

#waiting_on_auditee_statesObject



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

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

#waiting_on_reviewers_statesObject



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

def waiting_on_reviewers_states
  [:completed]
end