diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-02-16 19:33:30 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-02-16 19:33:30 +0800 |
commit | 36afa43e4da5c7e5804880401f2ef52c1119ba7c (patch) | |
tree | 9445840db5ae103f81c832a518c8ba457ce764d0 | |
parent | 46082f4b652cac097c72354b394881a128fd3a5f (diff) | |
download | gitlab-ce-36afa43e4da5c7e5804880401f2ef52c1119ba7c.tar.gz |
Use squish to also compact the string
Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9219#note_23436980
-rw-r--r-- | app/models/application_setting.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/application_setting.rb b/app/models/application_setting.rb index e865da0ce7a..3a2f69fde97 100644 --- a/app/models/application_setting.rb +++ b/app/models/application_setting.rb @@ -271,7 +271,7 @@ class ApplicationSetting < ActiveRecord::Base def default_artifacts_expire_in=(value) if value.present? - super(value.strip) + super(value.squish) else super(nil) end |