From f656a1093db4a3b13e9a644b99257b47c5610088 Mon Sep 17 00:00:00 2001 From: Mojca Lorber Date: Wed, 18 Jan 2017 14:40:24 +0100 Subject: [PATCH] fix hound --- app/utilities/protocols_importer.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/utilities/protocols_importer.rb b/app/utilities/protocols_importer.rb index 34bf3cd83..98acb38e3 100644 --- a/app/utilities/protocols_importer.rb +++ b/app/utilities/protocols_importer.rb @@ -90,11 +90,11 @@ module ProtocolsImporter end end - if step_json["tables"] - step_json["tables"].values.each do |table_json| + if step_json['tables'] + step_json['tables'].values.each do |table_json| table = Table.create!( - name: table_json["name"], - contents: Base64.decode64(table_json["contents"]), + name: table_json['name'], + contents: Base64.decode64(table_json['contents']), created_by: user, last_modified_by: user )