mirror of
https://github.com/discourse/discourse.git
synced 2024-12-05 18:00:28 +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
|