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