Commit f30515c9 authored by Aleksei Lipniagov's avatar Aleksei Lipniagov

Make Grape API defintion compatible with Ruby 3

As suggested by the gem author:
https://github.com/LeFnord/grape-entity/blob/master/UPGRADING.md
parent 9eab3c90
......@@ -10,7 +10,7 @@ module API
# in the future we can only return the filename here without the leading
# directory path.
# https://gitlab.com/gitlab-org/gitlab/issues/34521
expose :filename, &:path
expose :path, as: :filename
expose :id
expose :ref
expose :startline
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment