discourse/app/serializers/wizard_serializer.rb
2016-09-22 09:48:58 -04:00

10 lines
180 B
Ruby

class WizardSerializer < ApplicationSerializer
attributes :start
has_many :steps, serializer: WizardStepSerializer, embed: :objects
def start
object.start.id
end
end