Module: EffectiveCpdAudit::ClassMethods
- Defined in:
- app/models/concerns/effective_cpd_audit.rb
Instance Method Summary collapse
- #admin_process_request_options ⇒ Object
- #chat_permissions ⇒ Object
- #done_states ⇒ Object
- #effective_cpd_audit? ⇒ Boolean
- #waiting_on_admin_states ⇒ Object
- #waiting_on_auditee_states ⇒ Object
- #waiting_on_reviewers_states ⇒ Object
Instance Method Details
#admin_process_request_options ⇒ Object
19 20 21 |
# File 'app/models/concerns/effective_cpd_audit.rb', line 19 def ['Granted', 'Denied'] end |
#chat_permissions ⇒ Object
39 40 41 |
# File 'app/models/concerns/effective_cpd_audit.rb', line 39 def ['Can send messages until closed', 'Always send messages', 'Never send messages'] end |
#done_states ⇒ Object
23 24 25 |
# File 'app/models/concerns/effective_cpd_audit.rb', line 23 def done_states [:exemption_granted, :closed] end |
#effective_cpd_audit? ⇒ Boolean
17 |
# File 'app/models/concerns/effective_cpd_audit.rb', line 17 def effective_cpd_audit?; true; end |
#waiting_on_admin_states ⇒ Object
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_states ⇒ Object
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_states ⇒ Object
31 32 33 |
# File 'app/models/concerns/effective_cpd_audit.rb', line 31 def waiting_on_reviewers_states [:completed] end |