diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-10-17 16:13:19 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-10-17 16:13:19 +0200 |
commit | 9b790f1cf97157240178601c62d2e557a404503e (patch) | |
tree | 5013faeb348f3b68c5066742bac575026d6e74a7 /lib/gitlab | |
parent | 50d3cc2b677dac855a6270f5ffed7085df8edcf8 (diff) | |
download | gitlab-ce-9b790f1cf97157240178601c62d2e557a404503e.tar.gz |
Improve after code review
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/ci/config/node/environment.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/ci/config/node/environment.rb b/lib/gitlab/ci/config/node/environment.rb index 1c1d07843b1..b392f272bd6 100644 --- a/lib/gitlab/ci/config/node/environment.rb +++ b/lib/gitlab/ci/config/node/environment.rb @@ -37,10 +37,10 @@ module Gitlab allow_nil: true validates :action, - inclusion: { in: %w[start stop], message: 'should be start or stop, ' }, + inclusion: { in: %w[start stop], message: 'should be start or stop' }, allow_nil: true - validates :on_stop, string: true, allow_nil: true + validates :on_stop, type: String, allow_nil: true end end |