clean up code, use method instead of magic constant.

This commit is contained in:
Ralf Teusner
2017-11-15 14:17:55 +01:00
parent 69250901a1
commit 6161d6caaf

View File

@ -415,7 +415,7 @@ class ExercisesController < ApplicationController
end end
else else
# redirect to feedback page if score is less than 100 percent # redirect to feedback page if score is less than 100 percent
if @exercise.user_exercise_feedbacks.size <= 50 if @exercise.needs_more_feedback?
redirect_to_user_feedback redirect_to_user_feedback
else else
redirect_to_lti_return_path redirect_to_lti_return_path