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
|
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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue