1
0
Fork 0

Exclude methods from coverage

This commit is contained in:
Alex Kotov 2018-12-01 16:17:55 +05:00
parent 296e2a0e92
commit e2780db313
No known key found for this signature in database
GPG key ID: 4E831250F47DE154

View file

@ -8,6 +8,8 @@ class ApplicationPolicy
@record = record
end
# :nocov:
def index?
false
end
@ -36,6 +38,8 @@ class ApplicationPolicy
false
end
# :nocov:
def policy(record)
Pundit.policy user, record
end
@ -48,8 +52,12 @@ class ApplicationPolicy
@scope = scope
end
# :nocov:
def resolve
scope.none
end
# :nocov:
end
end