diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-10-04 18:21:01 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-10-04 18:21:01 +0900 |
commit | 982c2b83ed14f72c288cfd6c719e9729a0d8818e (patch) | |
tree | 861fabbbbedfabc49d93e6a1b09305c58a48682d /app/models/gcp | |
parent | f4f9ee94051f5107a963a157ef8c85d2164369c6 (diff) | |
download | gitlab-ce-982c2b83ed14f72c288cfd6c719e9729a0d8818e.tar.gz |
Fix static anlysys. Added safe_model_attributes.
Diffstat (limited to 'app/models/gcp')
-rw-r--r-- | app/models/gcp/cluster.rb | 5 |
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, |