alphagov/whitehall — pull request #1098 by tekin (2013-11-28 10:06:26+00:00)
Title: Rewrite query for Policy#active_supporting_pages

Some additional fixes for https://www.pivotaltracker.com/story/show/61301412

The previously used query didn't play nice when there was a later
deleted edition. It's been rewritten to follow the approach used in
Document#latest_edition.

Note that I've also removed the limiting on the state of the edition
as any non-deleted edition should be good.