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 false
end end
class Scope class ApplicationScope
attr_reader :user, :instructeur, :administrateur, :scope attr_reader :user, :instructeur, :administrateur, :scope
def initialize(account, scope) def initialize(account, scope)

View file

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

View file

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