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:
authorStan Hu <stanhu@gmail.com>2017-12-10 08:00:34 +0300
committerStan Hu <stanhu@gmail.com>2017-12-13 02:07:25 +0300
commit02e7e499d4011733c1cf0f6fb675dd2d309f0d52 (patch)
treec64a36748c56761a1d74613a9d3d3927c85fdd61 /app/controllers/projects
parent8b939bfab769810ba56f5f4ca18632fd7ae435db (diff)
Fix Rubocop offense and use a symbol instead of a string
Diffstat (limited to 'app/controllers/projects')
-rw-r--r--app/controllers/projects/pipeline_schedules_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/pipeline_schedules_controller.rb b/app/controllers/projects/pipeline_schedules_controller.rb
index 87878667e9b..dd6593650e7 100644
--- a/app/controllers/projects/pipeline_schedules_controller.rb
+++ b/app/controllers/projects/pipeline_schedules_controller.rb
@@ -42,7 +42,7 @@ class Projects::PipelineSchedulesController < Projects::ApplicationController
end
def play
- limiter = ::Gitlab::ActionRateLimiter.new(action: 'play_pipeline_schedule')
+ limiter = ::Gitlab::ActionRateLimiter.new(action: :play_pipeline_schedule)
if limiter.throttled?(throttle_key, 1)
flash[:alert] = 'You cannot play this scheduled pipeline at the moment. Please wait a minute.'