1
0
Fork 0
mirror of https://github.com/varvet/pundit.git synced 2022-11-09 12:30:11 -05:00

Merge pull request #108 from michaelem/master

Add note to readme to explain DoubleRenderError
This commit is contained in:
Thomas Klemm 2014-02-14 12:39:29 +01:00
commit 49eace6ca4

View file

@ -150,6 +150,11 @@ class ApplicationController < ActionController::Base
end
```
Both these methods may lead to a `DoubleRenderError` if you use Rails and
actually did not call `authorize` since most controllers already call `render`
beforehand.
## Scopes
Often, you will want to have some kind of view listing records which a