Method: Pageflow::AccountRoleQuery::Scope#initialize

Defined in:
app/models/pageflow/account_role_query.rb

#initialize(user, scope) ⇒ Scope

Create query scope.

Parameters:

  • user (User)

    User to query roles for.

  • scope (ActiveRecord::Relation)

    Scope of all accounts to filter from.



12
13
14
15
# File 'app/models/pageflow/account_role_query.rb', line 12

def initialize(user, scope)
  @user = user
  @scope = scope
end