summaryrefslogtreecommitdiff
path: root/app/serializers/note_entity.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/note_entity.rb')
-rw-r--r--app/serializers/note_entity.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/serializers/note_entity.rb b/app/serializers/note_entity.rb
index 663a9c06c40..7d50e0ff10d 100644
--- a/app/serializers/note_entity.rb
+++ b/app/serializers/note_entity.rb
@@ -14,8 +14,8 @@ class NoteEntity < API::Entities::Note
expose :redacted_note_html, as: :note_html
- expose :last_edited_at, if: -> (note, _) { note.is_edited? }
- expose :last_edited_by, using: NoteUserEntity, if: -> (note, _) { note.is_edited? }
+ expose :last_edited_at, if: -> (note, _) { note.edited? }
+ expose :last_edited_by, using: NoteUserEntity, if: -> (note, _) { note.edited? }
expose :current_user do
expose :can_edit do |note|