From 16f99afbc0013cb0b6edcba88a2d3e6a13dc236a Mon Sep 17 00:00:00 2001 From: Mojca Lorber Date: Wed, 13 Feb 2019 12:20:14 +0100 Subject: [PATCH] Minor fixes --- app/utilities/first_time_data_generator.rb | 33 ++++++---------------- 1 file changed, 9 insertions(+), 24 deletions(-) diff --git a/app/utilities/first_time_data_generator.rb b/app/utilities/first_time_data_generator.rb index e3259c322..4c9597981 100644 --- a/app/utilities/first_time_data_generator.rb +++ b/app/utilities/first_time_data_generator.rb @@ -585,7 +585,7 @@ module FirstTimeDataGenerator 'Collection of potatoes' ] - module_step_description1 = + module_step_descriptions = [ '

50% of samples should be mock inoculated @@ -600,10 +600,7 @@ module FirstTimeDataGenerator data-atwho-at-query=\"#\">[#' + sample_name + '5~rep_item~5].

- ' - - module_step_descriptions = [ - module_step_description1, + ', 'Collect samples in 2ml tubes and put them in '\ 'liquid nitrogen and store at 80°C.', '50% of PVYNTN inoculated potatos and 50% of Mock inoculated potatos ' \ @@ -893,7 +890,7 @@ module FirstTimeDataGenerator step = my_modules[3].protocol.steps.where('position = 0').take checklist = Checklist.new( name: 'If using the RNeasy Kit for the first time, read ' \ - '“Important Notes” in the attached file', + '"Important Notes" in the attached file', step: step ) module_checklist_items = [ @@ -925,9 +922,7 @@ module FirstTimeDataGenerator 'microcentrifuge. Ensure that the centrifuge does not cool below 20°C.' ] module_checklist_items.each do |item| - checklist.checklist_items << ChecklistItem.new( - text: item - ) + checklist.checklist_items << ChecklistItem.new(text: item) end checklist.save @@ -952,9 +947,7 @@ module FirstTimeDataGenerator 'stock solution as described in Appendix D (page 67).' ] module_checklist_items.each do |item| - checklist.checklist_items << ChecklistItem.new( - text: item - ) + checklist.checklist_items << ChecklistItem.new(text: item) end checklist.save @@ -980,9 +973,7 @@ module FirstTimeDataGenerator 'after performing this step.' ] module_checklist_items.each do |item| - checklist.checklist_items << ChecklistItem.new( - text: item - ) + checklist.checklist_items << ChecklistItem.new(text: item) end checklist.save @@ -1041,9 +1032,7 @@ module FirstTimeDataGenerator ) module_checklist_items.each do |item| - checklist.checklist_items << ChecklistItem.new( - text: item - ) + checklist.checklist_items << ChecklistItem.new(text: item) end checklist.save @@ -1106,9 +1095,7 @@ module FirstTimeDataGenerator 'Turn on the UV light' ] module_checklist_items.each do |item| - checklist.checklist_items << ChecklistItem.new( - text: item - ) + checklist.checklist_items << ChecklistItem.new(text: item) end checklist.save @@ -1404,9 +1391,7 @@ module FirstTimeDataGenerator 'Use gloves at all times' ] module_checklist_items.each do |item| - checklist.checklist_items << ChecklistItem.new( - text: item - ) + checklist.checklist_items << ChecklistItem.new(text: item) end checklist.save