alphagov/govuk_content_models — pull request #159 by JordanHatch (2014-04-17 13:59:10+00:00)
Title: Prevent a Mongo error when tag_ids are set to nil

At present, when the tag ids for a type of tag are set to nil (eg. `organisation_ids = nil`), the operation will raise an error as the MongoDB query is expecting an array.

This changes the writer method to make sure we only request tag IDs as an array when we fetch tags from the database.