From 31239d116a873bd6110c3995821df66c9720663a Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 13 Nov 2013 14:21:03 +0200 Subject: [PATCH] Add additional validation to push event Signed-off-by: Dmitriy Zaporozhets --- app/models/event.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/event.rb b/app/models/event.rb index 095a06c956b..f78f127242d 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -168,7 +168,7 @@ class Event < ActiveRecord::Base end def valid_push? - data[:ref] + data[:ref] && ref_name.present? rescue => ex false end