summaryrefslogtreecommitdiff
path: root/app/serializers/blob_entity.rb
diff options
context:
space:
mode:
authorToon Claes <toon@gitlab.com>2019-02-28 19:57:34 +0100
committerToon Claes <toon@gitlab.com>2019-02-28 19:57:34 +0100
commit62d7990b9bb30cf33ed87017c5c633d1cccc75c2 (patch)
treec3e1b69c58a412ba1c6f50a0337a23d9f9d6e1a4 /app/serializers/blob_entity.rb
parentf6453eca992a9c142268e78ac782cef98110d183 (diff)
downloadgitlab-ce-tc-standard-gem.tar.gz
Ran standardrb --fix on the whole codebasetc-standard-gem
Inspired by https://twitter.com/searls/status/1101137953743613952 I decided to try https://github.com/testdouble/standard on our codebase. It's opinionated, but at least it's a _standard_.
Diffstat (limited to 'app/serializers/blob_entity.rb')
-rw-r--r--app/serializers/blob_entity.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/serializers/blob_entity.rb b/app/serializers/blob_entity.rb
index 3ac61481dea..0f7d1810ee0 100644
--- a/app/serializers/blob_entity.rb
+++ b/app/serializers/blob_entity.rb
@@ -8,10 +8,10 @@ class BlobEntity < Grape::Entity
expose :readable_text?, as: :readable_text
expose :icon do |blob|
- IconsHelper.file_type_icon_class('file', blob.mode, blob.name)
+ IconsHelper.file_type_icon_class("file", blob.mode, blob.name)
end
- expose :url, if: -> (*) { request.respond_to?(:ref) } do |blob|
+ expose :url, if: ->(*) { request.respond_to?(:ref) } do |blob|
project_blob_path(request.project, File.join(request.ref, blob.path))
end
end