added relative knowledge loss function

This commit is contained in:
Thomas Hille
2017-02-15 15:55:17 +01:00
parent 4298e7050e
commit 25087232dd
2 changed files with 44 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ module User
has_many :user_proxy_exercise_exercises, as: :user
has_many :user_exercise_interventions, as: :user
has_many :interventions, through: :user_exercise_interventions
accepts_nested_attributes_for :user_proxy_exercise_exercises
scope :with_submissions, -> { where('id IN (SELECT user_id FROM submissions)') }