knock
knock copied to clipboard
Test case for namespaced model
Instead of just opening an issue reporting the bug, I'm sending the code to the case I'm discussing on.
Controller is expected to return unauthorized for namespaced model (specially in this case where even the key is being passed), but is returns ok.
I'm tried to implement a solution, but I've just discovered knock last week, so I'm reporting this bug hope it helps someone else.
Thank you!
atm my workaround is:
class User < Namespace::User
end
and use Knock with User defaults