Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 21st, 2012  |  syntax: None  |  size: 0.40 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Given that it's 10am
  2.  
  3. A User creates an Auction1 (AR object "#<Auction:0xbbc8af8>") with end_time of 12pm
  4.    Delayed job creates job_at 12pm with AR object "#<Auction:0xbbc8af8>"
  5.  
  6. User updates Auction1 (AR object "#<Auction:0xffffaab>") end_time to 11pm
  7.    Delayed job still has job_at 12pm with AR object "#<Auction:0xbbc8af8>"
  8.    Can this update tell delayed job to update job_at 12pm to job_at 11pm?