Skip to content

Instantly share code, notes, and snippets.

@indrode
Last active August 29, 2015 14:04
Show Gist options
  • Save indrode/cc465337e5925759b562 to your computer and use it in GitHub Desktop.
Save indrode/cc465337e5925759b562 to your computer and use it in GitHub Desktop.
Taking an offline-album back online.
album = Product.find(629639)
album.tracks.each do |t|
t.taken_offline = false
t.save
end
album.taken_offline = false
album.save
album.update_ati!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment