Fallback in user_for_paper_trail to accept current_user returning a string#346
Fallback in user_for_paper_trail to accept current_user returning a string#346shweelan wants to merge 1 commit intopaper-trail-gem:masterfrom
Conversation
|
It's shouldn't be a breaking change because you can always override the This seems reasonable I suppose, but what is your |
|
I have multiple application toolbox, they are commonly using the current_user function which returning only string not a model object, because I am using LDAP active directory credentials for users login, that's why I don't have users model. my changes to paper_trail gem will provide more flexibility to use string as well as model object. |
|
So I had to switch up the invocation of the I still would argue it's not a breaking change, because the |
|
Hi, when I first used paper trail, I felt lucky to get my current_user to the revisions log, with no need for changing any line in my code. That's why I said its breaking change cause when I made bundle update the app crashed. |
3.0.1 introduced a breaking changes to how current_user works. This is a workaround for backward compatibility.