From 9790afe1a41254a75d511bb5fb9ba3dbc52349db Mon Sep 17 00:00:00 2001 From: Hauke Klement Date: Mon, 9 Feb 2015 16:29:51 +0100 Subject: [PATCH] fix --- app/controllers/code_ocean/files_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/code_ocean/files_controller.rb b/app/controllers/code_ocean/files_controller.rb index c41712bb..ff236468 100644 --- a/app/controllers/code_ocean/files_controller.rb +++ b/app/controllers/code_ocean/files_controller.rb @@ -11,7 +11,7 @@ module CodeOcean def create @file = CodeOcean::File.new(file_params) authorize! - create_and_respond(object: @file, path: implement_exercise_path(@file.context.exercise, tab: 2)) + create_and_respond(object: @file, path: Proc.new { implement_exercise_path(@file.context.exercise, tab: 2) }) end def destroy