I have a many-to-many relationship between users and roles
class User << ActiveRecord::Base
class Role << ActiveRecord::Base
There is an user_roles table for the many-to-many and all works as
Role has an attribute (attr_x).
I want to find the Users that have a Role with attr_x == some val, in
Is there any simple way to specify in the find that
Person.role.attr_x == some val?
Thanks very much.