From 2284c2c28b10fb8cbfe2f5a12baa3c30fe6f6a98 Mon Sep 17 00:00:00 2001 From: Thomas Hille Date: Mon, 20 Mar 2017 18:00:31 +0100 Subject: [PATCH] fixed lti course token parsing --- app/controllers/exercises_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/exercises_controller.rb b/app/controllers/exercises_controller.rb index 62d1be7c..5afb4f77 100644 --- a/app/controllers/exercises_controller.rb +++ b/app/controllers/exercises_controller.rb @@ -185,7 +185,7 @@ class ExercisesController < ApplicationController def set_course_token if @lti_parameters - lti_json = @lti_parameters.lti_parameters + lti_json = @lti_parameters.lti_parameters[:lis_outcome_service_url] @course_token = if match = lti_json.match(/^.*courses\/([a-z0-9\-]+)\/sections/) match.captures.first