On Oct 12, 2013 2:04 PM, "Rob Hirschfeld" <notifications@github.com> wrote:
>
> In crowbar_framework/app/models/run.rb:
>
> >      end
> >    end
> >
> >    def self.empty?
> >      cleanup
> > -    Run.all.count == 0
> > +    Run.transaction do
>
> Why end with true?

It just does the count in a transaction with the table locked. It is just a
block, not a loop.

>
> —
> Reply to this email directly or view it on GitHub.