alphagov/frontend — pull request #309 by jystewart (2013-04-25 09:23:05+00:00)
Title: Simplify publication and environment

Following on from https://github.com/alphagov/frontend/pull/288 I've been looking for ways to break up the RootController#publication_and_environment method. These changes make some small improvements there by:

* Moving some responsibilities out to routes.rb
* Using a before_filter to make sure we can make some basic expectations once we hit our action
* Breaking the method apart into logical pieces