Search projects on dashboard was not worked. Fixed

This commit is contained in:
Andrew8xx8 2013-03-12 13:26:45 +04:00
parent 7367f1cfd8
commit 072883fd08

View file

@ -34,6 +34,7 @@ class DashboardController < ApplicationController
@projects @projects
end end
@projects = @projects.search(params[:search]) if params[:search].present?
@projects = @projects.page(params[:page]).per(30) @projects = @projects.page(params[:page]).per(30)
end end