mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 03:33:39 +08:00
14 lines
264 B
Ruby
14 lines
264 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class BasicThemeSerializer < ApplicationSerializer
|
||
|
attributes :id, :name, :created_at, :updated_at, :default, :component
|
||
|
|
||
|
def include_default?
|
||
|
object.id == SiteSetting.default_theme_id
|
||
|
end
|
||
|
|
||
|
def default
|
||
|
true
|
||
|
end
|
||
|
end
|