lib/acl9/model_extensions/subject.rb in be9-acl9-0.9.2 vs lib/acl9/model_extensions/subject.rb in be9-acl9-0.9.3

- old
+ new

@@ -91,10 +91,10 @@ def delete_role(role) if role self.roles.delete role - role.destroy if role.users.empty? + role.destroy if role.send(self.class.to_s.tableize).empty? end end protected