Commit 36afa43e authored by Lin Jen-Shin's avatar Lin Jen-Shin

Use squish to also compact the string

Feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9219#note_23436980
parent 46082f4b
......@@ -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
......
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