resolve/refinerycms-page-images — pull request #54 by phiggins (2012-02-07 05:56:34+00:00)
Title: Deleting all images from a page

Includes/depends on #53, but I sent them as seperate pull requests so we could discuss if necessary.

When I refactored stuff in #50, I thought using `not_in([])` would mean all records, but apparently it means none (at least in sqlite). This explicitly checks if the set is empty, and if so, destroys all associated image_pages.