back_masquerade_path(current_user) broken in newer versions
jason-hobbs opened this issue · comments
+1
@foundation-1 Hi everyone! Really sorry for having the issues. I will fix it during today/tomorrow.
I added as session storage implementation like record.to_param. saving id of the record and then I do .find() probably you have something friendly id as part of your user models.
@oivoodoo I am not using any friendly id, I am logged in as SuperAdmin(Masquerading) and Masqueraded User.
on <%= link_to "Logout", back_masquerade_path(current_user) %>
I get this error and it seems that masquerading owner is not being correctly identified
Instead of finding User, I think it should find 'SuperUser' ( masquerading class )
I am using friendly id.
I updated to 2.0.3 and am still having the issue whereas with < 1 it works fine.
After upgrading the library, any current session saved in the cache get this error:
Couldn't find User with 'id'=true [WHERE "users"."blocked_at" IS NULL]