diff options
author | Rémy Coutable <remy@rymai.me> | 2017-06-21 13:48:29 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-06-21 13:48:29 +0000 |
commit | 411163226841589ed92c97fcab0503d8b77368eb (patch) | |
tree | 3ea258c4da6e0f9c6e0f7523191fdb0a64a15c73 /lib/api/notes.rb | |
parent | 78ee24ba53a4a44d829613495ec0d5f1bbb5a9ee (diff) | |
parent | 0430b7644101fc70ed4be6bf69ccf05b900f4cdf (diff) | |
download | gitlab-ce-411163226841589ed92c97fcab0503d8b77368eb.tar.gz |
Merge branch 'rubocop/gb/enable-dot-position-cop-leading-style' into 'master'
Enable Style/DotPosition Rubocop :cop:
See merge request !11965
Diffstat (limited to 'lib/api/notes.rb')
-rw-r--r-- | lib/api/notes.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/notes.rb b/lib/api/notes.rb index e281e3230fd..01ca62b593f 100644 --- a/lib/api/notes.rb +++ b/lib/api/notes.rb @@ -33,8 +33,8 @@ module API # paginate() only works with a relation. This could lead to a # mismatch between the pagination headers info and the actual notes # array returned, but this is really a edge-case. - paginate(noteable.notes). - reject { |n| n.cross_reference_not_visible_for?(current_user) } + paginate(noteable.notes) + .reject { |n| n.cross_reference_not_visible_for?(current_user) } present notes, with: Entities::Note else not_found!("Notes") |