diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2019-01-22 11:09:04 +0100 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2019-01-22 12:34:11 +0100 |
commit | 2d057da183b35d4b4eca6eda8b005d7d068c342a (patch) | |
tree | 7c0d0f484707027d29f5faeeb32052f1e54b90ba /app/controllers/uploads_controller.rb | |
parent | 86cda964cf7f289c8b0cd1efa80b3bd4bacfec4e (diff) | |
download | gitlab-ce-2d057da183b35d4b4eca6eda8b005d7d068c342a.tar.gz |
Turned cache_privately? into cache_publicly?
Also removed unnecessary comment
Diffstat (limited to 'app/controllers/uploads_controller.rb')
-rw-r--r-- | app/controllers/uploads_controller.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/uploads_controller.rb b/app/controllers/uploads_controller.rb index 12f1d487f30..519e7439205 100644 --- a/app/controllers/uploads_controller.rb +++ b/app/controllers/uploads_controller.rb @@ -70,8 +70,8 @@ class UploadsController < ApplicationController end end - def cache_privately? - true unless User === model || Appearance === model + def cache_publicly? + User === model || Appearance === model end def upload_model_class |