diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-08-30 10:43:10 +0200 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-08-30 10:43:10 +0200 |
commit | a540f55c6e8ff64f7284ec4194f4c16ca711c685 (patch) | |
tree | 6f05a175db0b905b9d915d2831f08b2e68ca1369 /app/serializers | |
parent | b181d3124e4aefca59fb8fe64400eab8d9c73ad8 (diff) | |
download | gitlab-ce-a540f55c6e8ff64f7284ec4194f4c16ca711c685.tar.gz |
Fix specs
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/note_entity.rb | 4 |
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| |