discourse/app/serializers/gap_serializer.rb

14 lines
184 B
Ruby

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