has-friendship / has_friendship

Add friendship to ActiveRecord models
MIT License
198 stars 98 forks source link

Friendship between two models #52

Closed Wooody82 closed 6 years ago

Wooody82 commented 6 years ago

Hi, Is it possible to create friendship between two models, I am not sure if its right but the idea is more like this: User1 with Manager role will add a POST1 User2 with Coworker role can send a request to join POST1 to be a Team member of POST1. User1 can send request to let user2 be part of Teams User1/User2 can approve or reject if they got request. If anyone removes the relation so it's removed from both.

Any idea or way to do that. Thanks

chevinbrown commented 6 years ago

This is currently out of scope for this gem. The main purpose is to add a polymorphic join between records of one data type. I will be attempting to clean up the current code to support the basic associations that should exist. However, that can be fairly easily accomplished by a polymorphic group. 😄