Class: Locomotive::ApplicationPolicy::Scope
- Inherits:
-
Object
- Object
- Locomotive::ApplicationPolicy::Scope
- Defined in:
- app/policies/locomotive/application_policy.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#membership ⇒ Object
readonly
Returns the value of attribute membership.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(membership, scope) ⇒ Scope
constructor
A new instance of Scope.
Constructor Details
#initialize(membership, scope) ⇒ Scope
Returns a new instance of Scope.
8 9 10 11 |
# File 'app/policies/locomotive/application_policy.rb', line 8 def initialize(membership, scope) @membership = membership @scope = scope end |
Instance Attribute Details
#membership ⇒ Object (readonly)
Returns the value of attribute membership.
6 7 8 |
# File 'app/policies/locomotive/application_policy.rb', line 6 def membership @membership end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
6 7 8 |
# File 'app/policies/locomotive/application_policy.rb', line 6 def scope @scope end |