Skip to content

Commit

Permalink
Fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
beque committed Nov 5, 2024
1 parent ddd9317 commit 057b260
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/text_template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 057b260

Please sign in to comment.