diff options
author | Jan Provaznik <jprovaznik@gitlab.com> | 2018-07-18 17:49:52 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-07-18 17:49:52 +0300 |
commit | f665e5b8fb8fe5c360e716121e94a497788fd6d5 (patch) | |
tree | d2dd88095b4aa05ed89907f60d836164a3512d9b /lib/api | |
parent | 11deffa39f2b07605c3a924f227d3176158b51bc (diff) |
Fix serialization of LegacyDiffNote
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/entities.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index b256c33c631..3f3a95ea8e6 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -701,7 +701,7 @@ module API expose :system?, as: :system expose :noteable_id, :noteable_type - expose :position, if: ->(note, options) { note.diff_note? } do |note| + expose :position, if: ->(note, options) { note.is_a?(DiffNote) } do |note| note.position.to_h end |