Merge pull request #135 from ThommyH/fix_proxy_exercises

fixed problem in ProxyExercise that caused: ActiveRecord::Association…
This commit is contained in:
rteusner
2017-10-25 12:43:20 +02:00
committed by GitHub

View File

@ -36,8 +36,8 @@ class ProxyExercise < ActiveRecord::Base
Rails.logger.debug("retrieved assigned exercise for user #{user.id}: Exercise #{assigned_user_proxy_exercise.exercise}" )
assigned_user_proxy_exercise.exercise
else
Rails.logger.debug("find new matching exercise for user #{user.id}" )
matching_exercise =
Rails.logger.debug("find new matching exercise for user #{user.id}" )
begin
find_matching_exercise(user)
rescue => e #fallback