mirror of
https://github.com/discourse/discourse.git
synced 2024-12-09 21:53:44 +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
|