Use nil? for ref evaluation

This commit is contained in:
Shinya Maeda 2017-05-26 21:46:01 +09:00
parent ef61829b58
commit 8b5877dcd0
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@
= pipeline_schedule.description
%td.branch-name-cell
= icon('code-fork')
- if pipeline_schedule.ref.present?
- unless pipeline_schedule.ref.nil?
= link_to pipeline_schedule.ref, project_ref_path(@project, pipeline_schedule.ref), class: "ref-name"
%td
- if pipeline_schedule.last_pipeline