mirror of
https://github.com/varvet/pundit.git
synced 2022-11-09 12:30:11 -05:00
Change default index? policy to false
See gh-17 for initial discussion. I think that the default provided before this commit is confusing, because an empty result is not a good indicator of authorization failure. Returning false better communicates "override this is you want it".
This commit is contained in:
parent
f6455c4100
commit
cf8a739bb3
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ class ApplicationPolicy
|
|||
end
|
||||
|
||||
def index?
|
||||
scope.exists?
|
||||
false
|
||||
end
|
||||
|
||||
def show?
|
||||
|
|
Loading…
Reference in a new issue