discourse/app/serializers/wizard_serializer.rb

Failed to ignore revisions in .git-blame-ignore-revs.

16 lines
268 B
Ruby
Raw Normal View History

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