policies: clarify the role of ChampPolicy

This commit is contained in:
Pierre de La Morinerie 2020-06-24 15:27:41 +02:00
parent 812aef978d
commit df13bce0e0

View file

@ -1,4 +1,8 @@
class ChampPolicy < ApplicationPolicy
# Scope for WRITING to a champ.
#
# (If the need for a scope to READ a champ emerges, we can implement another scope
# in this file, following this example: https://github.com/varvet/pundit/issues/368#issuecomment-196111115)
class Scope < ApplicationScope
def resolve
if user.blank?