diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-08 12:47:09 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-08 12:47:09 +0100 |
commit | 048605bd33935cd2b37c72bf2b725e9c37e1f6e8 (patch) | |
tree | caf35eb873412ae71721e9244c1f899e351cff3e /app/models/application_setting.rb | |
parent | a426fb1596978221510c8c78a17703658ad7d161 (diff) | |
parent | f5430e48b42227f1c1874ca27c6907f0f704be28 (diff) | |
download | gitlab-ce-issue-closing-docs.tar.gz |
Merge branch 'master' into issue-closing-docsissue-closing-docs
Diffstat (limited to 'app/models/application_setting.rb')
-rw-r--r-- | app/models/application_setting.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/application_setting.rb b/app/models/application_setting.rb index 5ddcf3d9a0b..1880ad9f33c 100644 --- a/app/models/application_setting.rb +++ b/app/models/application_setting.rb @@ -43,12 +43,12 @@ class ApplicationSetting < ActiveRecord::Base validates :home_page_url, allow_blank: true, - format: { with: /\A#{URI.regexp(%w(http https))}\z/, message: "should be a valid url" }, + url: true, if: :home_page_url_column_exist validates :after_sign_out_path, allow_blank: true, - format: { with: /\A#{URI.regexp(%w(http https))}\z/, message: "should be a valid url" } + url: true validates :admin_notification_email, allow_blank: true, |