shadabahmed / logstasher

Awesome rails logs
MIT License
821 stars 136 forks source link

fix: execute the block passed to add_custom_field in the proper context #31

Closed elhu closed 10 years ago

elhu commented 10 years ago

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.

ghost commented 10 years ago

+1 on this. Fix works for me.

shadabahmed commented 10 years ago

Thanks so much for this

shadabahmed commented 10 years ago

Released logstasher 0.5.3 for this PR

elhu commented 10 years ago

Thank you. Once again, my apologies for the buggy PR.