Rename lfs_enabled helper method

This commit is contained in:
Jacob Vosmaer 2016-08-10 16:48:21 +02:00
parent 7dff0946a7
commit 0012de8c8a
3 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
class Projects::LfsApiController < Projects::GitHttpClientController
include LfsHelper
before_action :lfs_enabled!
before_action :require_lfs_enabled!
before_action :lfs_check_access!, except: [:deprecated]
def batch

View file

@ -1,7 +1,7 @@
class Projects::LfsStorageController < Projects::GitHttpClientController
include LfsHelper
before_action :lfs_enabled!
before_action :require_lfs_enabled!
before_action :lfs_check_access!
def download

View file

@ -1,5 +1,5 @@
module LfsHelper
def lfs_enabled!
def require_lfs_enabled!
return if Gitlab.config.lfs.enabled
render(