Class: Jobshop::ApplicationPolicy::Scope
- Inherits:
-
Object
- Object
- Jobshop::ApplicationPolicy::Scope
- Defined in:
- app/policies/jobshop/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
Instance Attribute Details
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
43 44 45 |
# File 'app/policies/jobshop/application_policy.rb', line 43 def scope @scope end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
43 44 45 |
# File 'app/policies/jobshop/application_policy.rb', line 43 def user @user end |
Instance Method Details
#resolve ⇒ Object
50 51 52 |
# File 'app/policies/jobshop/application_policy.rb', line 50 def resolve scope end |