Use compact syntax

This commit is contained in:
Alfredo Sumaran
2016-04-21 16:02:00 -05:00
parent c0ce498615
commit 3f574c4db9
+1 -4
View File
@@ -10,10 +10,7 @@ module FilterProjects
def filter_projects(projects)
projects = projects.search(params[:filter_projects]) if params[:filter_projects].present?
projects = projects.non_archived if params[:archived].blank?
if params[:personal].present? and current_user
projects = projects.personal(current_user)
end
projects = projects.personal(current_user) if params[:personal].present? && current_user
projects
end