Class: Dorsale::ApplicationPolicy::Scope
- Inherits:
-
Object
- Object
- Dorsale::ApplicationPolicy::Scope
- Defined in:
- app/policies/dorsale/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.
Constructor Details
#initialize(user, scope) ⇒ Scope
Returns a new instance of Scope.
38 39 40 41 |
# File 'app/policies/dorsale/application_policy.rb', line 38 def initialize(user, scope) @user = user @scope = scope end |
Instance Attribute Details
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
36 37 38 |
# File 'app/policies/dorsale/application_policy.rb', line 36 def scope @scope end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
36 37 38 |
# File 'app/policies/dorsale/application_policy.rb', line 36 def user @user end |