mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
Code review comments.
This commit is contained in:
@ -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|
|
||||
|
Reference in New Issue
Block a user