From f9a1814377474bab898cf7511bb02c53c6dc23b7 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Wed, 1 Mar 2017 11:29:35 +0100 Subject: [PATCH] Fix lambda operator --- app/models/ci/build.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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|