Class: Glib::ApplicationPolicy::Scope
- Inherits:
-
Object
- Object
- Glib::ApplicationPolicy::Scope
- Defined in:
- app/policies/glib/application_policy.rb
Overview
TODO: Remove. Deprecated private # Used by child def public?
true
end
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
To be overridden.
Constructor Details
#initialize(user, scope) ⇒ Scope
Returns a new instance of Scope.
160 161 162 163 |
# File 'app/policies/glib/application_policy.rb', line 160 def initialize(user, scope) @user = user @scope = scope end |
Instance Attribute Details
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
158 159 160 |
# File 'app/policies/glib/application_policy.rb', line 158 def scope @scope end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
158 159 160 |
# File 'app/policies/glib/application_policy.rb', line 158 def user @user end |
Instance Method Details
#resolve ⇒ Object
To be overridden
170 171 172 |
# File 'app/policies/glib/application_policy.rb', line 170 def resolve scope.none end |