1
0
Fork 0
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:
Brendon Murphy 2013-03-09 02:58:48 -08:00
parent f6455c4100
commit cf8a739bb3

View file

@ -7,7 +7,7 @@ class ApplicationPolicy
end
def index?
scope.exists?
false
end
def show?