> You probably don't want to add friends as an association.  I would use a 
> simple method:
>
>   class User < Sequel::Model
>     def friends
>       follows & followers
>     end
>   end
>
> since friends appears to be the intersection of follows and followers.
>

Thanks for this simple and elegant implementation. However, I am still 
interested to know I could achieve the same result using an association. Or 
would you in this case just write the raw SQL query?

Thanks,

Stefan

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sequel-talk/-/FUOmb3G9qf8J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en.

Reply via email to