diff options
author | Patricio Cano <suprnova32@gmail.com> | 2016-11-11 05:04:00 +0300 |
---|---|---|
committer | Patricio Cano <suprnova32@gmail.com> | 2016-11-11 05:04:00 +0300 |
commit | 50f047cadd6db4bc6e9f08beefbdf48f35ef876c (patch) | |
tree | 124cd5b28f1c475cf058ec388ceda0ff1f8e7862 /app/controllers | |
parent | a3fd8521fb036b1f7153cad58234e8cb08246278 (diff) |
Move the `objects` method to `LfsHelper` so that it is also available to `LfsStorageController`
It is needed for the `lfs_check_access!` callback when the repository size limit is enabled (EE only).
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/lfs_api_controller.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/controllers/projects/lfs_api_controller.rb b/app/controllers/projects/lfs_api_controller.rb index ece49dcd922..2d493276941 100644 --- a/app/controllers/projects/lfs_api_controller.rb +++ b/app/controllers/projects/lfs_api_controller.rb @@ -31,10 +31,6 @@ class Projects::LfsApiController < Projects::GitHttpClientController private - def objects - @objects ||= (params[:objects] || []).to_a - end - def existing_oids @existing_oids ||= begin storage_project.lfs_objects.where(oid: objects.map { |o| o['oid'].to_s }).pluck(:oid) |