Skip to content
Snippets Groups Projects
Commit 63a97c11 authored by Patricio Cano's avatar Patricio Cano
Browse files

Syntax and style fixes.

parent 0227e98d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -391,7 +391,10 @@ class Project < ActiveRecord::Base
end
 
def lfs_enabled?
(Gitlab.config.lfs.enabled && enable_lfs) || (enable_lfs.nil? && Gitlab.config.lfs.enabled)
return false unless Gitlab.config.lfs.enabled
return Gitlab.config.lfs.enabled if enable_lfs.nil?
enable_lfs
end
 
def repository_storage_path
Loading
Loading
Loading
Loading
@@ -84,7 +84,7 @@
.form-group
.checkbox
= f.label :enable_lfs do
= f.check_box :enable_lfs, checked: (true if @project.enable_lfs || @project.enable_lfs.nil?)
= f.check_box :enable_lfs, checked: @project.lfs_enabled?
%strong LFS
%br
%span.descr Git Large File Storage
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment