Fix lambda operator
This commit is contained in:
parent
be039d22d7
commit
f9a1814377
1 changed files with 1 additions and 1 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue