Skip to content

Instantly share code, notes, and snippets.

@dabit
Forked from jparbros/gist:1309602
Created October 24, 2011 17:52
Show Gist options
  • Save dabit/1309640 to your computer and use it in GitHub Desktop.
Save dabit/1309640 to your computer and use it in GitHub Desktop.
@products.each_with_index do |p, i|
p.update_attribute(:date_available, i.minutes.ago)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment