I'm using mongoid_grid with mongoid 2.0.0.rc.7, and I realized attachments aren't actually deleted from GridFS after a document that holds a reference to that file is destroyed
This branch actually deletes GridFS attachments after_destroy instead of just marking them for deletion.
I also replaced some brittle exception handling with a check against #destroyed? instead of using a string comparison against "can't modify frozen hash."
I'm using mongoid_grid with mongoid 2.0.0.rc.7, and I realized attachments aren't actually deleted from GridFS after a document that holds a reference to that file is destroyed
This branch actually deletes GridFS attachments after_destroy instead of just marking them for deletion.
I also replaced some brittle exception handling with a check against #destroyed? instead of using a string comparison against "can't modify frozen hash."