SELECT clients.* FROM clients
INNER JOIN roles ON roles.roleable_type = 'Client' AND roles.roleable_id = clients.id
INNER JOIN participants ON participants.expired_on IS NULL AND participants.id = roles.participant_id
WHERE participants.expired_on IS NULL AND roles.expired_on IS NULL AND NOT ((participants.name_search LIKE '%tway%' OR participants.name_search LIKE '%legal%')) order by short_name;
produces the following arel code:
The match method is omitted from
It should be
I would appreciate it if you could take a look and let me know what I may have done incorrectly or if it's Scuttle