class Commands::Groups::Membership::List
Public Instance Methods
execute()
click to toggle source
# File lib/restpack_group_service/commands/membership/list.rb, line 17 def execute scope = Models::Groups::Membership.all if is_account_group scope = scope.where("account_id IS NOT NULL") else scope = scope.where("account_id IS NULL") unless account_id end Serializers::Groups::Membership.resource(inputs, scope) end