Search projects on dashboard was not worked. Fixed

5-0-stable
Andrew8xx8 2013-03-12 13:26:45 +04:00
parent 7367f1cfd8
commit 072883fd08
1 changed files with 1 additions and 0 deletions

View File

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