mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 01:22:36 +08:00
14 lines
237 B
Ruby
14 lines
237 B
Ruby
class WizardSerializer < ApplicationSerializer
|
|
attributes :start, :completed
|
|
|
|
has_many :steps, serializer: WizardStepSerializer, embed: :objects
|
|
|
|
def start
|
|
object.start.id
|
|
end
|
|
|
|
def completed
|
|
object.completed?
|
|
end
|
|
end
|