hackerschool/community — pull request #267 by zachallaun (2014-12-04 16:56:10+00:00)
Title: Connect to redis lazily instead of on worker boot (Fixes #266)

`@mentions` broke when we started sending notifications in a job. The problem was that `$redis` was defined in puma's `on_worker_boot`, which isn't run for the job worker. This fix lazily connects to redis and caches the connection instead of relying on a global.