From 0e0228cb8c5dcd9f6862d0316c1dfb5355eaa5cf Mon Sep 17 00:00:00 2001 From: Luka Murn Date: Tue, 30 Aug 2016 13:06:49 +0200 Subject: [PATCH] Codestyle fixes --- app/models/organization.rb | 7 ++++++- app/utilities/first_time_data_generator.rb | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/app/models/organization.rb b/app/models/organization.rb index 38aac65e6..9ded50e93 100644 --- a/app/models/organization.rb +++ b/app/models/organization.rb @@ -255,7 +255,12 @@ class Organization < ActiveRecord::Base def calculate_space_taken st = 0 projects.includes( - experiments: { my_modules: { protocols: { steps: :assets }, results: { result_asset: :asset } } } + experiments: { + my_modules: { + protocols: { steps: :assets }, + results: { result_asset: :asset } + } + } ).find_each do |project| project.project_my_modules.find_each do |my_module| my_module.protocol.steps.find_each do |step| diff --git a/app/utilities/first_time_data_generator.rb b/app/utilities/first_time_data_generator.rb index 4b5568bb6..fbb3392c9 100644 --- a/app/utilities/first_time_data_generator.rb +++ b/app/utilities/first_time_data_generator.rb @@ -537,7 +537,8 @@ module FirstTimeDataGenerator generate_result_comment( temp_result, user, - 'PVY NTN 6dpi isolation seems to have failed, please repeat nanodrop measurement.' + 'PVY NTN 6dpi isolation seems to have failed, ' \ + 'please repeat nanodrop measurement.' ) temp_result.table = Table.new( created_by: user,