Commit 32a964dd authored by Cindy Pallares's avatar Cindy Pallares
Browse files

Alias the lfs_enabled method

We currently check for `project.lfs_enabled` to display
the state of lfs being enabled/disabled, but this is set to nil by
default, even when lfs is enabled.

Aliasing the method to #lfs_enabled? will return the correct state.
parent 0ebb06c0a231
......@@ -548,6 +548,8 @@ def lfs_enabled?
self[:lfs_enabled] && Gitlab.config.lfs.enabled
end
alias_method :lfs_enabled, :lfs_enabled?
def auto_devops_enabled?
if auto_devops&.enabled.nil?
has_auto_devops_implicitly_enabled?
......
---
title: Resolve LFS not correctly showing enabled
merge_request: 22501
author:
type: fixed
......@@ -335,7 +335,7 @@
restored_project_json
expect(project.lfs_enabled).to be_nil
expect(project.lfs_enabled).to be_falsey
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment