Class: BackOffice::DefaultPolicy::Scope
- Inherits:
-
Object
- Object
- BackOffice::DefaultPolicy::Scope
- Defined in:
- lib/potassium/assets/active_admin/policies/default_policy.rb
Instance Attribute Summary collapse
-
#admin_user ⇒ Object
readonly
Returns the value of attribute admin_user.
-
#scope ⇒ Object
readonly
Returns the value of attribute scope.
Instance Method Summary collapse
-
#initialize(admin_user, scope) ⇒ Scope
constructor
A new instance of Scope.
- #resolve ⇒ Object
Constructor Details
#initialize(admin_user, scope) ⇒ Scope
Returns a new instance of Scope.
40 41 42 43 |
# File 'lib/potassium/assets/active_admin/policies/default_policy.rb', line 40 def initialize(admin_user, scope) @admin_user = admin_user @scope = scope end |
Instance Attribute Details
#admin_user ⇒ Object (readonly)
Returns the value of attribute admin_user.
38 39 40 |
# File 'lib/potassium/assets/active_admin/policies/default_policy.rb', line 38 def admin_user @admin_user end |
#scope ⇒ Object (readonly)
Returns the value of attribute scope.
38 39 40 |
# File 'lib/potassium/assets/active_admin/policies/default_policy.rb', line 38 def scope @scope end |
Instance Method Details
#resolve ⇒ Object
45 46 47 |
# File 'lib/potassium/assets/active_admin/policies/default_policy.rb', line 45 def resolve scope.all end |