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
18 19 20 |
# File 'app/models/concerns/effective_cpd_audit.rb', line 18 def ['Granted', 'Denied'] end |
#chat_permissions ⇒ Object
38 39 40 |
# File 'app/models/concerns/effective_cpd_audit.rb', line 38 def ['Can send messages until closed', 'Always send messages', 'Never send messages'] end |
#done_states ⇒ Object
22 23 24 |
# File 'app/models/concerns/effective_cpd_audit.rb', line 22 def done_states [:exemption_granted, :closed] end |
#effective_cpd_audit? ⇒ Boolean
16 |
# File 'app/models/concerns/effective_cpd_audit.rb', line 16 def effective_cpd_audit?; true; end |
#waiting_on_admin_states ⇒ Object
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_states ⇒ Object
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_states ⇒ Object
30 31 32 |
# File 'app/models/concerns/effective_cpd_audit.rb', line 30 def waiting_on_reviewers_states [:completed] end |