diff options
author | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2017-09-06 16:14:21 +0300 |
---|---|---|
committer | Zeger-Jan van de Weg <git@zjvandeweg.nl> | 2017-09-06 16:14:21 +0300 |
commit | c288ca78b42986ea1cc315d46d58fc25f7ff8f85 (patch) | |
tree | 71f798f710562db6127ea4bb2b19bfca4a1b2ba7 /app/models/project_auto_devops.rb | |
parent | 003bfac2931cfaffce0fb4ad5be84cb95d093490 (diff) |
Use hook for setting Pipeline config_source
Diffstat (limited to 'app/models/project_auto_devops.rb')
-rw-r--r-- | app/models/project_auto_devops.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_auto_devops.rb b/app/models/project_auto_devops.rb index 7bf6ef4c821..d39273216d6 100644 --- a/app/models/project_auto_devops.rb +++ b/app/models/project_auto_devops.rb @@ -1,5 +1,5 @@ class ProjectAutoDevops < ActiveRecord::Base belongs_to :project - validates :domain, presence: true, if: :enabled? + validates :domain, presence: true, hostname: { allow_numeric_hostname: true }, if: :enabled? end |