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:
commit
49eace6ca4
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue