discourse/app/serializers/wizard_serializer.rb

10 lines
180 B
Ruby
Raw Normal View History

2016-08-25 13:14:56 -04:00
class WizardSerializer < ApplicationSerializer
attributes :start
has_many :steps, serializer: WizardStepSerializer, embed: :objects
def start
object.start.id
end
end