On Jun 2, 12:18 am, Matthew Hillsborough <matthew.hillsboro...@gmail.com> wrote:
> Is there anyway to work around this condition and temporarily set the > in_use attribute to 1 for subsequent iterations of the loop so that I > retrieve an available bar instance? > Well if things do need to be atomic then you probably want to wrap this in a transaction and roll back if one of those validations fail. You could also change your conditions on that find to exclude a bar with a particular id Fred > Thanks, > > Matthew -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.