summaryrefslogtreecommitdiff
path: root/app/serializers/note_attachment_entity.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/note_attachment_entity.rb')
-rw-r--r--app/serializers/note_attachment_entity.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/serializers/note_attachment_entity.rb b/app/serializers/note_attachment_entity.rb
new file mode 100644
index 00000000000..1ad50568ab9
--- /dev/null
+++ b/app/serializers/note_attachment_entity.rb
@@ -0,0 +1,5 @@
+class NoteAttachmentEntity < Grape::Entity
+ expose :url
+ expose :filename
+ expose :image?, as: :image
+end