alphagov/govuk_need_api — pull request #59 by tekin (2014-04-15 09:24:22+00:00)
Title: Ensure correct scope is used when ids is empty

When an empty set of ids was specified, the mongoid scope was matching all needs instead of none as it should have been. To get Mongoid to do the right thing, we pass in [nil] when ids is empty.