Ryan Seys
Ryan Seys
Cool, I'll take a look at that.
Thanks for the pull request! Just left a few small comments.
@seuros could we get a review of this as well? This would fix a MonkeyPatch that we have been using for a while.
Our monkeypatch is changing this line from `after_initialize` to `before_create`: https://github.com/state-machines/state_machines-audit_trail/blob/7c7f773e5faaf80dd36c0f48a01cefd713a7dbb1/lib/state_machines/audit_trail/transition_auditing.rb#L57 which it appears this PR is trying to do in a slightly different way? Perhaps either / both approaches...
Line 17 to 21 ``` try { staticSend = require('connect').static.send; //returns undefined, doesn't throw an error } catch (e) { staticSend = require('express').static.send; } ``` require('connect').static.send; //returns undefined, so test...