Skip to content
Snippets Groups Projects
Commit 36afa43e authored by Lin Jen-Shin's avatar Lin Jen-Shin
Browse files

Use squish to also compact the string

parent 46082f4b
Branches
Tags
1 merge request!9219Artifact Expiration Defaults
Loading
@@ -271,7 +271,7 @@ class ApplicationSetting < ActiveRecord::Base
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment