removed project filter
This commit is contained in:
parent
cff9519127
commit
321dbb7bac
5 changed files with 26 additions and 64 deletions
|
@ -12,9 +12,7 @@ class ProjectsController < ApplicationController
|
|||
|
||||
def index
|
||||
@limit, @offset = (params[:limit] || 16), (params[:offset] || 0)
|
||||
@projects = current_user.projects
|
||||
@projects = @projects.where("name LIKE ?", "%#{params[:terms]}%") unless params[:terms].blank?
|
||||
@projects = @projects.limit(@limit).offset(@offset)
|
||||
@projects = current_user.projects.limit(@limit).offset(@offset)
|
||||
end
|
||||
|
||||
def new
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue