summaryrefslogtreecommitdiff
path: root/app/controllers/projects/tree_controller.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-01-15 15:08:32 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-01-15 15:08:32 +0000
commit9044365a91112d426fbbfba07eca595652bbe2df (patch)
treea46df8721ca37ef4336375c201f783b4392f385a /app/controllers/projects/tree_controller.rb
parent0820b29dca14bd22c2cee6d9ee2900b64385bfa6 (diff)
downloadgitlab-ce-9044365a91112d426fbbfba07eca595652bbe2df.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/controllers/projects/tree_controller.rb')
-rw-r--r--app/controllers/projects/tree_controller.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/projects/tree_controller.rb b/app/controllers/projects/tree_controller.rb
index c2f6fbdc265..aba28e5c835 100644
--- a/app/controllers/projects/tree_controller.rb
+++ b/app/controllers/projects/tree_controller.rb
@@ -15,6 +15,10 @@ class Projects::TreeController < Projects::ApplicationController
before_action :authorize_download_code!
before_action :authorize_edit_tree!, only: [:create_dir]
+ before_action only: [:show] do
+ push_frontend_feature_flag(:vue_file_list_lfs_badge)
+ end
+
def show
return render_404 unless @repository.commit(@ref)