Module: EffectiveWorkExperience

Includes:
EffectiveGem
Defined in:
lib/effective_work_experience.rb,
lib/effective_work_experience/engine.rb,
lib/effective_work_experience/version.rb,
lib/generators/effective_work_experience/install_generator.rb

Defined Under Namespace

Modules: Generators Classes: Engine

Constant Summary collapse

VERSION =
'0.0.2'.freeze

Class Method Summary collapse

Class Method Details

.config_keysObject



8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/effective_work_experience.rb', line 8

def self.config_keys
  [
    :work_experience_categories_table_name, :work_experience_subcategories_table_name,
    :work_experience_records_table_name, :work_experience_entries_table_name,
    :work_experience_projects_table_name, :work_experience_summaries_table_name,
    :work_experience_outside_mentors_table_name,

    :work_experience_summary_class_name,

    :layout, :recommendations, :summary_months,
    :mailer, :parent_mailer, :deliver_method, :mailer_layout, :mailer_sender, :mailer_admin, :mailer_subject,
    :use_effective_email_templates
  ]
end

.mailer_classObject



30
31
32
# File 'lib/effective_work_experience.rb', line 30

def self.mailer_class
  mailer&.constantize || Effective::WorkExperienceMailer
end

.WorkExperienceSummaryObject

The only swappable class. Mark yours with effective_work_experience_summary



26
27
28
# File 'lib/effective_work_experience.rb', line 26

def self.WorkExperienceSummary
  work_experience_summary_class_name&.constantize || Effective::WorkExperienceSummary
end