[#345] fix 500 error

This commit is contained in:
Alexander Machehin 2014-03-26 14:36:02 +06:00
parent ddd2cae8da
commit ed1f6764fa
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ json.pull_request do
json.ref @pull.from_ref
json.sha @pull.from_commit.try(:id)
json.project do
json.(@pull.from_project, :id, :name)
json.(@pull.from_project, :id, :name) if @pull.from_project.present?
json.owner_uname @pull.to_project.owner.uname
end
end