Class: ProxES::ApplicationPolicy::Scope
- Inherits:
-
Object
- Object
- ProxES::ApplicationPolicy::Scope
- Defined in:
- lib/proxes/policies/application_policy.rb
Direct Known Subclasses
ProxES::AuditLogPolicy::Scope, IdentityPolicy::Scope, PermissionPolicy::Scope, RolePolicy::Scope, TokenPolicy::Scope, UserPolicy::Scope
Instance Attribute Summary collapse
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(user, scope) ⇒ Scope
constructor
A new instance of Scope.
Constructor Details
#initialize(user, scope) ⇒ Scope
Returns a new instance of Scope.
14 15 16 17 |
# File 'lib/proxes/policies/application_policy.rb', line 14 def initialize(user, scope) @user = user @scope = scope end |
Instance Attribute Details
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
12 13 14 |
# File 'lib/proxes/policies/application_policy.rb', line 12 def scope @scope end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
12 13 14 |
# File 'lib/proxes/policies/application_policy.rb', line 12 def user @user end |