Module: EffectiveClassifieds

Includes:
EffectiveGem
Defined in:
lib/effective_classifieds.rb,
lib/effective_classifieds/engine.rb,
lib/effective_classifieds/version.rb

Defined Under Namespace

Classes: Engine

Constant Summary collapse

VERSION =
'0.6.2'.freeze

Class Method Summary collapse

Class Method Details

.ClassifiedWizardObject



19
20
21
# File 'lib/effective_classifieds.rb', line 19

def self.ClassifiedWizard
  classified_wizard_class_name&.constantize || Effective::ClassifiedWizard
end

.config_keysObject



8
9
10
11
12
13
14
15
# File 'lib/effective_classifieds.rb', line 8

def self.config_keys
  [
    :classifieds_table_name, :classified_wizards_table_name,
    :mailer, :parent_mailer, :deliver_method, :mailer_layout, :mailer_sender, :mailer_admin, :mailer_subject,
    :layout, :categories, :per_page, :use_effective_roles, :max_duration, :auto_approve,
    :classified_wizard_class_name
  ]
end

.mailer_classObject



23
24
25
# File 'lib/effective_classifieds.rb', line 23

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