lib/facemock/fb_graph/application/user.rb in facemock-0.0.6 vs lib/facemock/fb_graph/application/user.rb in facemock-0.0.7
- old
+ new
@@ -36,13 +36,11 @@
@permission_objects = User::Permission.find_all_by_user_id(self.id)
super
end
def destroy
- @permission_objects.each do |permission|
- permission.destroy
- end
super
+ @permission_objects = []
end
def revoke!
@permission_objects.each do |permission|
permission.destroy