Skip to content
Snippets Groups Projects
Commit 7bb7c8d4 authored by Ray Zeller's avatar Ray Zeller
Browse files

Pass in dir variable when retreiving data files in Maxmind insert task

parent b4e66031
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ module Geocoder
end
def insert(package, dir = "tmp")
data_files(package).each do |filepath,table|
data_files(package, dir).each do |filepath,table|
print "Resetting table #{table}..."
ActiveRecord::Base.connection.execute("DELETE FROM #{table}")
puts "done"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment