diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index d9057a7c97b..dde102f414a 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 => :blocked + transition created: :blocked end after_transition any => [:pending] do |build|