Class: Tenon::ApplicationPolicy::Scope
- Inherits:
-
Object
- Object
- Tenon::ApplicationPolicy::Scope
- Defined in:
- app/policies/tenon/application_policy.rb
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.
- #resolve ⇒ Object
Constructor Details
#initialize(user, scope) ⇒ Scope
Returns a new instance of Scope.
53 54 55 56 |
# File 'app/policies/tenon/application_policy.rb', line 53 def initialize(user, scope) @user = user @scope = scope end |
Instance Attribute Details
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
51 52 53 |
# File 'app/policies/tenon/application_policy.rb', line 51 def scope @scope end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
51 52 53 |
# File 'app/policies/tenon/application_policy.rb', line 51 def user @user end |
Instance Method Details
#resolve ⇒ Object
58 59 60 |
# File 'app/policies/tenon/application_policy.rb', line 58 def resolve scope end |