Skip to content

Instantly share code, notes, and snippets.

@simonrentzke
Last active September 28, 2016 12:40
Show Gist options
  • Save simonrentzke/54eea629eb9dde393f8d5f7b64811c8e to your computer and use it in GitHub Desktop.
Save simonrentzke/54eea629eb9dde393f8d5f7b64811c8e to your computer and use it in GitHub Desktop.
update assets
Badge.all.each {|l| l.update_attributes(image: Dragonfly.app.fetch_url("http://placekitten.com/800/#{800+rand(100)}")) }
Level.all.each {|l| l.update_attributes(image: Dragonfly.app.fetch_url("https://robohash.org/#{rand(100)}?set=3")) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment