policies: rename "Scope" to "ApplicationScope"
For clarity.
This commit is contained in:
parent
e1c046f4d8
commit
a20b6b73a2
3 changed files with 3 additions and 3 deletions
|
@ -34,7 +34,7 @@ class ApplicationPolicy
|
|||
false
|
||||
end
|
||||
|
||||
class Scope
|
||||
class ApplicationScope
|
||||
attr_reader :user, :instructeur, :administrateur, :scope
|
||||
|
||||
def initialize(account, scope)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
class ChampPolicy < ApplicationPolicy
|
||||
class Scope < Scope
|
||||
class Scope < ApplicationScope
|
||||
def resolve
|
||||
if user.present?
|
||||
scope
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
class TypeDeChampPolicy < ApplicationPolicy
|
||||
class Scope < Scope
|
||||
class Scope < ApplicationScope
|
||||
def resolve
|
||||
if administrateur.present?
|
||||
scope
|
||||
|
|
Loading…
Reference in a new issue