Class: LeanCms::ApplicationPolicy::Scope
- Inherits:
-
Object
- Object
- LeanCms::ApplicationPolicy::Scope
- Defined in:
- app/policies/lean_cms/application_policy.rb
Direct Known Subclasses
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.
21 22 23 24 |
# File 'app/policies/lean_cms/application_policy.rb', line 21 def initialize(user, scope) @user = user @scope = scope end |
Instance Method Details
#resolve ⇒ Object
26 27 28 |
# File 'app/policies/lean_cms/application_policy.rb', line 26 def resolve raise NoMethodError, "You must define #resolve in #{self.class}" end |