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.3.8'.freeze

Class Method Summary collapse

Class Method Details

.config_keysObject



8
9
10
11
12
13
14
15
# 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,
    :stamp_categories,
    :layout, :use_effective_roles
  ]
end

.RingWizardObject



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

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

.stamp_categoriesObject



27
28
29
# File 'lib/effective_products.rb', line 27

def self.stamp_categories
  Array(config[:stamp_categories])
end

.StampWizardObject



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

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