Integrate ActiveJob / DeliverLater / GlobalID with Rails

WIP.
YAGNI, in my opinion. When a case arises where we do need to wrap this, we wrap it. It's only in test code and it's only a handful of lines.

> On Aug 14, 2014, at 19:17, Aaron Patterson <notifications@github.com> wrote:
> 
> In activejob/test/cases/logging_test.rb:
> 
> > +
> > +  class TestLogger < ActiveSupport::Logger
> > +    def initialize
> > +      @file = StringIO.new
> > +      super(@file)
> > +    end
> > +
> > +    def messages
> > +      @file.rewind
> > +      @file.read
> > +    end
> > +  end
> > +
> > +  def setup
> > +    super
> > +    $BUFFER = []
> Trying to reason about a global variables is extremely annoying -- even in tests. We could at least place a class method on the job itself and mutate that. I don't mind that global state is being changed, I mind that it's not hidden behind methods so we can lock (or do whatever).
> 
> —
> Reply to this email directly or view it on GitHub.