removed the last(100) filter on the index method of submission, since it did not work this way. ToDo: check whether this breaks anything, discuss with JanR.
This commit is contained in:
@ -55,7 +55,7 @@ class SubmissionsController < ApplicationController
|
|||||||
end
|
end
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@search = Submission.last(100).search(params[:q])
|
@search = Submission.search(params[:q])
|
||||||
@submissions = @search.result.includes(:exercise, :user).paginate(page: params[:page])
|
@submissions = @search.result.includes(:exercise, :user).paginate(page: params[:page])
|
||||||
authorize!
|
authorize!
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user