Use present? instead of presence on Projects::IssuesController#index

This commit is contained in:
Douglas Barbosa Alexandre 2016-10-13 17:14:05 -03:00
parent 0e8dd59913
commit 6792644ae7
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ class Projects::IssuesController < Projects::ApplicationController
@issues = issues_collection
@issues = @issues.page(params[:page])
if params[:label_name].presence
if params[:label_name].present?
@labels = LabelsFinder.new(current_user, project_id: @project.id, title: params[:label_name]).execute
end