Method: Pageflow::EntryPolicy::Scope#initialize
- Defined in:
- app/policies/pageflow/entry_policy.rb
#initialize(user, scope) ⇒ Scope
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Scope.
8 9 10 11 12 |
# File 'app/policies/pageflow/entry_policy.rb', line 8 def initialize(user, scope) @user = user @scope = scope @query = EntryRoleQuery::Scope.new(user, scope) end |