charliesome/better_errors — pull request #143 by hackeron (2013-03-12 09:18:20+00:00)
Title: Make better_errors work when env["REMOTE_ADDR"] is empty

Puma, when used behind a reverse proxy sets an empty env["REMOTE_ADDR"] and this make better_errors throw a nasty exception on every page and basically stops your rails app from working. Details in issue #125. This 1 line fixes it.