Method: Pageflow::AccountMemberQuery::Scope#with_role_at_least
- Defined in:
- app/models/pageflow/account_member_query.rb
#with_role_at_least(role) ⇒ ActiveRecord::Relation<User>
Scope to those members from scope on account who have at least role
31 32 33 34 |
# File 'app/models/pageflow/account_member_query.rb', line 31 def with_role_at_least(role) scope.joins(memberships_for_account_with_at_least_role(role)) .where(membership_is_present) end |