Commit 3f574c4d authored by Alfredo Sumaran's avatar Alfredo Sumaran

Use compact syntax

parent c0ce4986
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment