debian-mirror-gitlab/app/serializers/diff_viewer_entity.rb
2019-07-07 11:18:12 +05:30

8 lines
231 B
Ruby

# frozen_string_literal: true
class DiffViewerEntity < Grape::Entity
expose :partial_name, as: :name
expose :render_error, as: :error
expose :render_error_message, as: :error_message
expose :collapsed?, as: :collapsed
end