BigW Consortium Gitlab

Commit 3f574c4d by Alfredo Sumaran

Use compact syntax

parent c0ce4986
...@@ -10,10 +10,7 @@ module FilterProjects ...@@ -10,10 +10,7 @@ module FilterProjects
def filter_projects(projects) def filter_projects(projects)
projects = projects.search(params[:filter_projects]) if params[:filter_projects].present? projects = projects.search(params[:filter_projects]) if params[:filter_projects].present?
projects = projects.non_archived if params[:archived].blank? projects = projects.non_archived if params[:archived].blank?
projects = projects.personal(current_user) if params[:personal].present? && current_user
if params[:personal].present? and current_user
projects = projects.personal(current_user)
end
projects projects
end 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