From 057b260df3a077b399c4a0aa570488c5b1c84e3a Mon Sep 17 00:00:00 2001 From: Beate Quednau Date: Tue, 5 Nov 2024 19:42:01 +0100 Subject: [PATCH] Fix rubocop --- app/models/text_template.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/text_template.rb b/app/models/text_template.rb index ddb80d5cea..5a900643b2 100644 --- a/app/models/text_template.rb +++ b/app/models/text_template.rb @@ -74,7 +74,8 @@ class DeviceDescriptionTextTemplate < TextTemplate class PredefinedTextTemplate < TextTemplate def self.init_seeds - predefined_template_seeds_path = File.join(Rails.root.join('db/seeds/json/text_template_seeds.json')) + filepath = Rails.root.join('db/seeds/json/text_template_seeds.json') + predefined_template_seeds_path = File.join(filepath) predefined_templates = JSON.parse(File.read(predefined_template_seeds_path)) predefined_templates.each do |template|