From f33f4d916e0874f8140733a30813d63f008626dc Mon Sep 17 00:00:00 2001 From: wpoynter Date: Thu, 8 Sep 2016 15:54:27 +0100 Subject: [PATCH] Added task to load in instruction references --- lib/tasks/loader.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tasks/loader.rake b/lib/tasks/loader.rake index 88e92b5e..7faef738 100644 --- a/lib/tasks/loader.rake +++ b/lib/tasks/loader.rake @@ -66,7 +66,7 @@ task :load_instrument_references, [:path] => [:environment] do |t, args| if q.nil? || instruction.nil? raise 'One of q or instruction could not be found' else - q.association(:instruction).writer instruction + q.instruction_id = instruction.id q.save! end rescue => e