diff options
author | Stan Hu <stanhu@gmail.com> | 2017-12-09 21:00:34 -0800 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-12-12 15:07:25 -0800 |
commit | 02e7e499d4011733c1cf0f6fb675dd2d309f0d52 (patch) | |
tree | c64a36748c56761a1d74613a9d3d3927c85fdd61 /app/controllers | |
parent | 8b939bfab769810ba56f5f4ca18632fd7ae435db (diff) | |
download | gitlab-ce-02e7e499d4011733c1cf0f6fb675dd2d309f0d52.tar.gz |
Fix Rubocop offense and use a symbol instead of a string
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/pipeline_schedules_controller.rb | 2 |
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.' |