Class: ThemeModifierHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/theme_modifier_helper.rb

Instance Method Summary collapse

Constructor Details

#initialize(request: nil, theme_ids: nil) ⇒ ThemeModifierHelper

Returns a new instance of ThemeModifierHelper.



3
4
5
# File 'lib/theme_modifier_helper.rb', line 3

def initialize(request: nil, theme_ids: nil)
  @theme_ids = theme_ids || Theme.transform_ids(request&.env&.[](:resolved_theme_id))
end