alphagov/govuk_content_models — pull request #92 by JordanHatch (2013-07-19 15:33:54+00:00)
Title: Scope and order related grouped artefacts

Modify the related_artefacts_grouped_by_distance method to accept a scope or array as its single parameter. This is so that the content API can request only the artefacts which are live.

Additionally, preserve the artefact order in each group by passing the group through the order_related_artefacts method once again.