diff options
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.' |