[refs #2161] Update auto_build_lists controller scopes

This commit is contained in:
konstantin.grabar 2011-11-02 00:23:06 +04:00
parent 9c06e35842
commit fffb73a484
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ class AutoBuildListsController < ApplicationController
def index
@projects_not_automated = Project.scoped
@projects_not_automated = @projects_not_automated.where(:name => params[:name]) unless params[:name].blank?
@projects_not_automated = @projects_not_automated.automateable.paginate :page => params[:not_automated_page], :per_page => 15
@projects_not_automated = @projects_not_automated.automateable.where(:owner_id => current_user.id, :owner_type => 'User').paginate :page => params[:not_automated_page], :per_page => 15
@projects_already_automated = Project.joins(:auto_build_lists).paginate :page => params[:already_automated_page], :per_page => 15
end