Class: Ditty::ApplicationPolicy::Scope
- Inherits:
-
Object
- Object
- Ditty::ApplicationPolicy::Scope
- Defined in:
- lib/ditty/policies/application_policy.rb
Direct Known Subclasses
Ditty::AuditLogPolicy::Scope, IdentityPolicy::Scope, RolePolicy::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.
15 16 17 18 |
# File 'lib/ditty/policies/application_policy.rb', line 15 def initialize(user, scope) @user = user @scope = scope end |
Instance Attribute Details
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
13 14 15 |
# File 'lib/ditty/policies/application_policy.rb', line 13 def scope @scope end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
13 14 15 |
# File 'lib/ditty/policies/application_policy.rb', line 13 def user @user end |