shadabahmed/logstasher — pull request #31 by elhu (2014-05-06 16:09:48+00:00)
Title: fix: execute the block passed to `add_custom_field` in the proper context

This fixes a regression introduced in #30 that caused the block passed to `add_custom_fields` to be executed in the wrong context, denying it access to controller methods.

Kudos to @ffmike for finding it, and shame on me for pushing something after an aggressive refactoring without taking enough time to make sure everything worked.