summaryrefslogtreecommitdiff
path: root/app/models/gcp
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-10-04 18:21:01 +0900
committerShinya Maeda <shinya@gitlab.com>2017-10-04 18:21:01 +0900
commit982c2b83ed14f72c288cfd6c719e9729a0d8818e (patch)
tree861fabbbbedfabc49d93e6a1b09305c58a48682d /app/models/gcp
parentf4f9ee94051f5107a963a157ef8c85d2164369c6 (diff)
downloadgitlab-ce-982c2b83ed14f72c288cfd6c719e9729a0d8818e.tar.gz
Fix static anlysys. Added safe_model_attributes.
Diffstat (limited to 'app/models/gcp')
-rw-r--r--app/models/gcp/cluster.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/models/gcp/cluster.rb b/app/models/gcp/cluster.rb
index 81af8161b8f..8e7807a3a55 100644
--- a/app/models/gcp/cluster.rb
+++ b/app/models/gcp/cluster.rb
@@ -48,7 +48,10 @@ module Gcp
validates :gcp_cluster_zone, presence: true
validates :gcp_cluster_size, presence: true,
- numericality: { only_integer: true, greater_than: 0 }
+ numericality: {
+ only_integer: true,
+ greater_than: 0
+ }
validates :project_namespace,
allow_blank: true,