alphagov/govuk_content_models — pull request #40 by jystewart (2012-12-03 14:11:52+00:00)
Title: Remove Plek.current.environment from fact check emails

Extracts FactCheckAddress as its own concept and calls that from Edition. This is to begin to centralise knowledge of those addresses and allows us to remove some duplicate code from publisher. These changes are backwards compatible.

This way of getting the environment is a hack. There's a cleaner way to do it, perhaps by setting the environment or address format on application initialisation. That would involve further reaching changes and the focus right now is on being able to upgrade Plek so I'm using it for a subsequent round of work.