Remove user_exercise_feedback index and show routes / views

This commit is contained in:
Sebastian Serth
2018-12-19 01:35:00 +01:00
parent 0e8c663039
commit 71cd9e3488
4 changed files with 1 additions and 49 deletions

View File

@ -19,16 +19,6 @@ class UserExerciseFeedbacksController < ApplicationController
[4,t('user_exercise_feedback.estimated_time_more_30')]]
end
def index
@search = UserExerciseFeedback.all.search params[:q]
@uefs = @search.result.includes(:execution_environment).order(:id).paginate(page: params[:page])
authorize!
end
def show
authorize!
end
def create
@exercise = Exercise.find(uef_params[:exercise_id])
rfc = RequestForComment.unsolved.where(exercise_id: @exercise.id, user_id: current_user.id).first