alphagov/whitehall — pull request #1168 by evilstreak (2013-12-17 14:37:50+00:00)
Title: Fix attachment editing for corporate information pages

Make the admin system use IDs instead of slugs for corporate information pages, as they are unique across the whole system, whereas slugs are only unique per organisation so would need further nesting for the attachments controller.

The changes to the frontend code to make it continue to use slug is a bit of a mess — a further piece of work needed to tidy it up is to create a `CorporateInformationPresenter` that, given an organisation, will provide all the data needed by the `_corporate_information.html.erb` partial and decorate any `CorporateInformationPage` objects with `UseSlugAsParam`.

Since this fix is needed to unblock master for deployment, that further work will have to happen separately.