debian-mirror-gitlab/app/serializers/suggestion_serializer.rb
2019-05-18 00:54:41 +05:30

9 lines
192 B
Ruby

# frozen_string_literal: true
class SuggestionSerializer < BaseSerializer
entity SuggestionEntity
def represent_diff(resource)
represent(resource, { only: [:diff_lines] })
end
end