policies: rename "Scope" to "ApplicationScope"

For clarity.
This commit is contained in:
Pierre de La Morinerie 2019-10-07 18:06:55 +02:00
parent e1c046f4d8
commit a20b6b73a2
3 changed files with 3 additions and 3 deletions

View file

@ -34,7 +34,7 @@ class ApplicationPolicy
false
end
class Scope
class ApplicationScope
attr_reader :user, :instructeur, :administrateur, :scope
def initialize(account, scope)

View file

@ -1,5 +1,5 @@
class ChampPolicy < ApplicationPolicy
class Scope < Scope
class Scope < ApplicationScope
def resolve
if user.present?
scope

View file

@ -1,5 +1,5 @@
class TypeDeChampPolicy < ApplicationPolicy
class Scope < Scope
class Scope < ApplicationScope
def resolve
if administrateur.present?
scope