I think it might be best to push this logic into the model by adding a non-static Collection#unpublished_media_objects so it can be more easily tested, keep the view clean, and allow it to be used elsewhere.