thoughtbot/clearance — Issue #173: what is the proper way to extend deny_access?
Author: iros
Created: 2011-10-18 13:53:39+00:00
State: open

Apologies for opening a ticket for this, but I was wondering how one can be best overwrite default deny_access behavior? As far as creating a REST api, a redirect is not actually the desired behavior for many operations that should be denied (instead, one may want to receive a 401 unauthorized error code and call it a day.)

Any advice on how to best handle that? Right now I just have a fork that's special cased for a js format, but that doesn't seem ideal.

Thanks,