Class: ZenAdmin::ApplicationPolicy::Scope
- Inherits:
-
Object
- Object
- ZenAdmin::ApplicationPolicy::Scope
- Defined in:
- app/policies/zen_admin/application_policy.rb
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.
39 40 41 42 |
# File 'app/policies/zen_admin/application_policy.rb', line 39 def initialize(user, scope) @user = user @scope = scope end |
Instance Method Details
#resolve ⇒ Object
44 45 46 |
# File 'app/policies/zen_admin/application_policy.rb', line 44 def resolve scope.all end |