discourse/app/serializers/gap_serializer.rb

12 lines
153 B
Ruby

class GapSerializer < ApplicationSerializer
attributes :before, :after
def before
@object.before
end
def after
@object.after
end
end