summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-11 12:39:07 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-05-11 12:39:07 +0200
commita2934f45317ed64beb948b8487199251a987c4a1 (patch)
tree2f1705e2b3be67e44ca1cdbfc6e85449ec9d0ab2
parent7d6d3421d64085c05c8b7a17dcf0b70fbdd478b5 (diff)
downloadgitlab-ce-fix/reuse-runner-edit-form-in-admin-area.tar.gz
Use % notation for arrays in runner model constantsfix/reuse-runner-edit-form-in-admin-area
-rw-r--r--app/models/ci/runner.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb
index d27963e8ec5..e598a132869 100644
--- a/app/models/ci/runner.rb
+++ b/app/models/ci/runner.rb
@@ -22,8 +22,8 @@ module Ci
extend Ci::Model
LAST_CONTACT_TIME = 5.minutes.ago
- AVAILABLE_SCOPES = ['specific', 'shared', 'active', 'paused', 'online']
- FORM_EDITABLE = [:description, :tag_list, :active]
+ AVAILABLE_SCOPES = %w[specific shared active paused online]
+ FORM_EDITABLE = %i[description tag_list active]
has_many :builds, class_name: 'Ci::Build'
has_many :runner_projects, dependent: :destroy, class_name: 'Ci::RunnerProject'