alphagov/rummager — pull request #235 by rboulton (2014-05-28 14:26:28+00:00)
Title: Fix access to config for non-sinatra scripts

Scripts such as bin/bulk_load which aren't running under sinatra don't
have the settings global variable available. These have been broken
by a recent change which made the Index class access the settings
global.

Instead, inject the settings into Index via the constructor. This in
turn requires corresponding updates to IndexGroup and SearchServer.