Open 0000sir opened 7 years ago
This sounds like a bug. I'll do some more investigation.
I was having trouble with this too. Whenever I add a member to a class that inherited from Group, the group type on those member would all be Group not the class name that inherited from Group
@0000sir @asafigan I don't seem to have the described problem deleting and selecting using the branch I'm working on to do some refactoring. Could you see if the bug is fixed for you?
@0000sir @asafigan have you guys checked out #61 for single-table inheritance and polymoprhic improvements? This may become the 1.0 release of Groupify, so your feedback on this refactor is greatly appreciated. Thanks.
Thank you for your work, it a great gem. But I have some issue while using single table inheritance. Models are listed below:
I can add a user to a department as well, but when I trying to delete it from the department, it not works, and the sql is:
But the relationship generated in group_memberships, the group_type is Department, so nothing happened after the deletion sql.
This also happens while retrieving department members, department.users runs this sql:
It wont find anything because of wrong group_type, can you give more detail of using single table inheritance? It would be a big help, thank you