Add additional validation to push event

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2013-11-13 14:21:03 +02:00
parent 467e4e81f4
commit 31239d116a
No known key found for this signature in database
GPG Key ID: 2CEAFD2671262EC2
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ class Event < ActiveRecord::Base
end
def valid_push?
data[:ref]
data[:ref] && ref_name.present?
rescue => ex
false
end