Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2016-05-13 22:53:31 +0300
committerDouwe Maan <douwe@selenight.nl>2016-05-14 01:31:58 +0300
commit7848d54f5b0024f58d8ce2b0259347816be5bdbc (patch)
treef3b8edbd0be946edec4b2c4e2bd29070e3f68947 /lib/api
parent9a3ed265e9c82ee55bc6a17737ef6c5c2a1ad7e3 (diff)
Clean up LegacyDiffNote somewhat
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/entities.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 1619199b0a7..93a5798e21e 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -227,7 +227,7 @@ module API
class CommitNote < Grape::Entity
expose :note
- expose(:path) { |note| note.diff_file_name if note.legacy_diff_note? }
+ expose(:path) { |note| note.diff_file_path if note.legacy_diff_note? }
expose(:line) { |note| note.diff_new_line if note.legacy_diff_note? }
expose(:line_type) { |note| note.diff_line_type if note.legacy_diff_note? }
expose :author, using: Entities::UserBasic