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:
Ralf Teusner
2015-08-26 11:52:52 +02:00
parent b417231c12
commit 44cb0150cc

View File

@ -55,7 +55,7 @@ class SubmissionsController < ApplicationController
end
def index
@search = Submission.last(100).search(params[:q])
@search = Submission.search(params[:q])
@submissions = @search.result.includes(:exercise, :user).paginate(page: params[:page])
authorize!
end