Module: EffectiveCpd
- Includes:
- EffectiveGem
- Defined in:
- lib/effective_cpd.rb,
lib/effective_cpd/engine.rb,
lib/effective_cpd/version.rb,
lib/generators/effective_cpd/install_generator.rb
Defined Under Namespace
Modules: Generators Classes: Engine
Constant Summary collapse
- VERSION =
'1.3.1'
Class Method Summary collapse
- .config_keys ⇒ Object
- .CpdAudit ⇒ Object
- .CpdAuditLevel ⇒ Object
- .CpdAuditReview ⇒ Object
- .CpdBulkAudit ⇒ Object
- .CpdStatement ⇒ Object
- .mailer_class ⇒ Object
- .use_effective_messaging? ⇒ Boolean
Class Method Details
.config_keys ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/effective_cpd.rb', line 8 def self.config_keys [ :cpd_categories_table_name, :cpd_activities_table_name, :cpd_cycles_table_name, :cpd_rules_table_name, :cpd_special_rules_table_name, :cpd_special_rule_mates_table_name, :cpd_statements_table_name, :cpd_statement_activities_table_name, :cpd_audit_levels_table_name, :cpd_audit_level_sections_table_name, :cpd_audit_level_questions_table_name, :cpd_audit_level_question_options_table_name, :cpd_audits_table_name, :cpd_audit_responses_table_name, :cpd_audit_response_options_table_name, :cpd_audit_reviews_table_name, :cpd_audit_review_items_table_name, :cpd_bulk_audits_table_name, :layout, :auditee_user_scope, :audit_reviewer_user_scope, :use_effective_messaging, :mailer, :parent_mailer, :deliver_method, :mailer_layout, :mailer_sender, :mailer_admin, :mailer_subject, :use_effective_email_templates, :cpd_statement_class_name, :cpd_audit_class_name, :cpd_audit_level_class_name, :cpd_audit_review_class_name, :cpd_bulk_audit_class_name ] end |
.CpdAudit ⇒ Object
34 35 36 |
# File 'lib/effective_cpd.rb', line 34 def self.CpdAudit cpd_audit_class_name&.constantize || Effective::CpdAudit end |
.CpdAuditLevel ⇒ Object
38 39 40 |
# File 'lib/effective_cpd.rb', line 38 def self.CpdAuditLevel cpd_audit_level_class_name&.constantize || Effective::CpdAuditLevel end |
.CpdAuditReview ⇒ Object
42 43 44 |
# File 'lib/effective_cpd.rb', line 42 def self.CpdAuditReview cpd_audit_review_class_name&.constantize || Effective::CpdAuditReview end |
.CpdBulkAudit ⇒ Object
46 47 48 |
# File 'lib/effective_cpd.rb', line 46 def self.CpdBulkAudit cpd_bulk_audit_class_name&.constantize || Effective::CpdBulkAudit end |
.CpdStatement ⇒ Object
30 31 32 |
# File 'lib/effective_cpd.rb', line 30 def self.CpdStatement cpd_statement_class_name&.constantize || Effective::CpdStatement end |
.mailer_class ⇒ Object
26 27 28 |
# File 'lib/effective_cpd.rb', line 26 def self.mailer_class mailer&.constantize || Effective::CpdMailer end |
.use_effective_messaging? ⇒ Boolean
50 51 52 |
# File 'lib/effective_cpd.rb', line 50 def self.use_effective_messaging? defined?(EffectiveMessaging) && !!use_effective_messaging end |