Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirilll Zaitsev <kirik910@gmail.com>2015-09-19 04:18:10 +0300
committerKirilll Zaitsev <kirik910@gmail.com>2015-09-19 14:12:20 +0300
commit9021200ad3312666bbcd6e0b4a876023d72283ab (patch)
treebfbf42227110a36f229a078eb0dc6933102b8153 /app/models
parent5a8d73243a7b68f2724a6d5f9d482dda24e9dfe4 (diff)
Removed format validation
Diffstat (limited to 'app/models')
-rw-r--r--app/models/project_services/drone_ci_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project_services/drone_ci_service.rb b/app/models/project_services/drone_ci_service.rb
index b13fa3e9ecb..c73c4b058a1 100644
--- a/app/models/project_services/drone_ci_service.rb
+++ b/app/models/project_services/drone_ci_service.rb
@@ -26,7 +26,7 @@ class DroneCiService < CiService
format: { with: /\A#{URI.regexp(%w(http https))}\z/, message: "should be a valid url" }, if: :activated?
validates :token,
presence: true,
- format: { with: /\A([A-Za-z0-9]+)\z/ }, if: :activated?
+ if: :activated?
after_save :compose_service_hook, if: :activated?