blob: 587fa2347fd9ab8204b3fb0e80648b0c91d26987 (
plain)
1
2
3
4
5
6
7
8
9
10
|
# frozen_string_literal: true
class DiffViewerEntity < Grape::Entity
# Partial name refers directly to a Rails feature, let's avoid
# using this on the frontend.
expose :partial_name, as: :name
expose :error do |diff_viewer|
diff_viewer.render_error_message
end
end
|