{"action":"closed","issue":{"url":"https://api.github.com/repos/RolifyCommunity/rolify/issues/306","labels_url":"https://api.github.com/repos/RolifyCommunity/rolify/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/RolifyCommunity/rolify/issues/306/comments","events_url":"https://api.github.com/repos/RolifyCommunity/rolify/issues/306/events","html_url":"https://github.com/RolifyCommunity/rolify/issues/306","id":53494369,"number":306,"title":"Role is totally removed if removed from one of user model","user":{"login":"shir","id":229417,"avatar_url":"https://avatars.githubusercontent.com/u/229417?v=3","gravatar_id":"","url":"https://api.github.com/users/shir","html_url":"https://github.com/shir","followers_url":"https://api.github.com/users/shir/followers","following_url":"https://api.github.com/users/shir/following{/other_user}","gists_url":"https://api.github.com/users/shir/gists{/gist_id}","starred_url":"https://api.github.com/users/shir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shir/subscriptions","organizations_url":"https://api.github.com/users/shir/orgs","repos_url":"https://api.github.com/users/shir/repos","events_url":"https://api.github.com/users/shir/events{/privacy}","received_events_url":"https://api.github.com/users/shir/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RolifyCommunity/rolify/labels/3.x","name":"3.x","color":"99cc11"},{"url":"https://api.github.com/repos/RolifyCommunity/rolify/labels/bugs","name":"bugs","color":"444444"},{"url":"https://api.github.com/repos/RolifyCommunity/rolify/labels/need%20feedback","name":"need feedback","color":"DDDDDD"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-06T09:00:57Z","updated_at":"2015-10-15T18:12:42Z","closed_at":"2015-10-15T18:12:42Z","body":"I have to user models `User1` and `User2`. Both use rolify. Users from both model have same role:\r\n```rb\r\nuser1.add_role :admin\r\nuser2.add_role :admin\r\n```\r\nIf I remove role for `user2` and there is no other users of model `User2` with same role then role will be totally removed:\r\n```rb\r\nuser2.remove_role :admin\r\nuser1.reload\r\nuser1.has_role? :admin # => false\r\n```"}}