提交 3f574c4d 编写于 作者: A Alfredo Sumaran

Use compact syntax

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册