<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -72,13 +72,13 @@ module Authorization
 
         def has_no_roles_for(authorizable_obj = nil)
           old_roles = roles_for(authorizable_obj).dup
-          roles_for(authorizable_obj).destroy_all
+          self.roles.delete(old_roles)
           old_roles.each { |role| delete_role_if_empty( role ) }
         end
 
         def has_no_roles
           old_roles = self.roles.dup
-          self.roles.destroy_all
+          self.roles.clear
           old_roles.each { |role| delete_role_if_empty( role ) }
         end
 </diff>
      <filename>lib/publishare/object_roles_table.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6a71f147658b12883e18736c744b70db82c482d2</id>
    </parent>
  </parents>
  <author>
    <name>Tim Wong</name>
    <email>timlikesdogs@gmail.com</email>
  </author>
  <url>http://github.com/DocSavage/rails-authorization-plugin/commit/139b6d5794736daab6a7f6483def2e358856c3de</url>
  <id>139b6d5794736daab6a7f6483def2e358856c3de</id>
  <committed-date>2009-05-11T15:26:07-07:00</committed-date>
  <authored-date>2009-04-06T15:16:15-07:00</authored-date>
  <message>When removing role associations for an object, don't destroy the roles before checking that they're empty.

Signed-off-by: Glenn Rempe &lt;glenn@rempe.us&gt;</message>
  <tree>5b10732df40e9db9116350a9a466dfc48c4a0fa8</tree>
  <committer>
    <name>Glenn Rempe</name>
    <email>glenn@rempe.us</email>
  </committer>
</commit>
