Fix lambda operator

This commit is contained in:
Kamil Trzcinski 2017-03-01 11:29:35 +01:00 committed by Grzegorz Bizon
parent be039d22d7
commit f9a1814377

View file

@ -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|