Skip to content

Instantly share code, notes, and snippets.

@jywarren
Created August 26, 2022 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jywarren/467fb6e4eb4c034e2b698b4c998e7a1a to your computer and use it in GitHub Desktop.
Save jywarren/467fb6e4eb4c034e2b698b4c998e7a1a to your computer and use it in GitHub Desktop.
w = Map.where.not(author: 'anonymous').collect(&:warpables)
urls = []
w.each do |img|
img.each do |i| urls << [i.map.name,i.image.url];end
end
file = File.new("images.json", "w")
file.puts(urls.to_s)
file.close
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment