diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 4086417eb78..e2eb1c49975 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -64,7 +64,7 @@ module Ci state_machine :status do event :block do - transition :created => :manual, if: () -> { self.when == 'manual' } + transition :created => :manual, if: ->() { self.when == 'manual' } end after_transition any => [:pending] do |build|