Add PairProgrammingStudy
* Later used to create the A/B groups
This commit is contained in:

committed by
Sebastian Serth

parent
319c3ab3b4
commit
2fb8def1d0
@ -21,6 +21,8 @@ class SessionsController < ApplicationController
|
||||
store_nonce(params[:oauth_nonce])
|
||||
if params[:custom_redirect_target]
|
||||
redirect_to(URI.parse(params[:custom_redirect_target].to_s).path)
|
||||
elsif PairProgramming23Study.participate?
|
||||
redirect_to(new_exercise_programming_group_path(@exercise))
|
||||
else
|
||||
redirect_to(implement_exercise_path(@exercise),
|
||||
notice: t("sessions.create_through_lti.session_#{lti_outcome_service?(@exercise.id, current_user.id) ? 'with' : 'without'}_outcome",
|
||||
|
8
lib/pair_programming23_study.rb
Normal file
8
lib/pair_programming23_study.rb
Normal file
@ -0,0 +1,8 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class PairProgramming23Study
|
||||
def self.participate?
|
||||
# TODO: Decide which users are in the study
|
||||
false
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user