Module: EffectiveProducts

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

Defined Under Namespace

Classes: Engine

Constant Summary collapse

VERSION =
'0.1.2'.freeze

Class Method Summary collapse

Class Method Details

.config_keysObject



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

def self.config_keys
  [
    :rings_table_name, :ring_wizards_table_name, :ring_wizard_class_name,
    :stamps_table_name, :stamp_wizards_table_name, :stamp_wizard_class_name,
    :layout, :use_effective_roles
  ]
end

.RingWizardObject



18
19
20
# File 'lib/effective_products.rb', line 18

def self.RingWizard
  ring_wizard_class_name&.constantize || Effective::RingWizard
end

.StampWizardObject



22
23
24
# File 'lib/effective_products.rb', line 22

def self.StampWizard
  stamp_wizard_class_name&.constantize || Effective::StampWizard
end