Class: ThemeModifierHelper
- Inherits:
-
Object
- Object
- ThemeModifierHelper
- Defined in:
- lib/theme_modifier_helper.rb
Instance Method Summary collapse
-
#initialize(request: nil, theme_ids: nil) ⇒ ThemeModifierHelper
constructor
A new instance of ThemeModifierHelper.
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 |