BigW Consortium Gitlab

Commit 36afa43e by Lin Jen-Shin

Use squish to also compact the string

parent 46082f4b
...@@ -271,7 +271,7 @@ class ApplicationSetting < ActiveRecord::Base ...@@ -271,7 +271,7 @@ class ApplicationSetting < ActiveRecord::Base
def default_artifacts_expire_in=(value) def default_artifacts_expire_in=(value)
if value.present? if value.present?
super(value.strip) super(value.squish)
else else
super(nil) super(nil)
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