<div dir="ltr">So I'm working on a project using Clearance for authentication, and Pundit for authorization/permissions. I'm particularly enjoying working with Pundit.
<div><br></div><div>However, I'm running into an issue on the front-end that I don't run into in my tests: whenever I ask if #current_user is include?ed in the list of users who have permission to do a thing, I inevitably get 'false' back - even if they're on that list. By contrast, the moment I ask if <a href="http://current_user.id">current_user.id</a> is in users.map(&:id) - well, that works fine.</div><div><br></div><div>So it feels like there's an issue around equivalence, which makes a bit of sense, but I have no idea why; all the Clearance docs suggest I can just use current_user as and when.</div><div><br></div><div>Any thoughts or advice? I hope that came over as clear enough.</div><div><br></div><div>Best,</div><div><br></div><div>t.</div></div>