Code review comments.

This commit is contained in:
Alan Guo Xiang Tan
2021-06-18 10:16:26 +08:00
parent 8e3691d537
commit 44aa46ca05
29 changed files with 159 additions and 64 deletions

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true
class ThemeModifierHelper
def initialize(request: nil, theme_ids: nil)
@theme_ids = theme_ids || [request&.env&.[](:resolved_theme_id)]
@theme_ids = theme_ids || Theme.transform_ids(request&.env&.[](:resolved_theme_id))
end
ThemeModifierSet.modifiers.keys.each do |modifier|