]> git.openstreetmap.org Git - rails.git/commitdiff
Require open3 before using it
authorTom Hughes <tom@compton.nu>
Fri, 26 Jun 2020 18:40:37 +0000 (19:40 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 26 Jun 2020 18:40:37 +0000 (19:40 +0100)
app/models/trace.rb

index 49e4a041b8512bc1519d0dd0870e70ea681c4177..5496bec45977f71e9d0d83aad5a3198b71f50ac0 100644 (file)
@@ -26,6 +26,8 @@
 #
 
 class Trace < ApplicationRecord
+  require "open3"
+
   self.table_name = "gpx_files"
 
   belongs_to :user, :counter_cache => true