cancancan
cancancan copied to clipboard
"Cannot" with association hash conditions : accessible_by generates incorrect SQL (Postgres / ActiveRecord)
I hope it's enough to link to the relevant issue #214
The commit addresses the issue at its root by checking for IS NULL. PostgreSQL can't compare null values with any other value.
@coorasse Hi, you seem to be one of the maintainer. Any updates on this PR? It is still an issue in our applications that we can't really fix otherwise.
Best regards