Commit 63a97c11 authored by Patricio Cano's avatar Patricio Cano

Syntax and style fixes.

parent 0227e98d
...@@ -391,7 +391,10 @@ class Project < ActiveRecord::Base ...@@ -391,7 +391,10 @@ class Project < ActiveRecord::Base
end end
def lfs_enabled? 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 end
def repository_storage_path def repository_storage_path
......
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
.form-group .form-group
.checkbox .checkbox
= f.label :enable_lfs do = 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 %strong LFS
%br %br
%span.descr Git Large File Storage %span.descr Git Large File Storage
......
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