alphagov/maslow — pull request #52 by JordanHatch (2013-12-13 15:41:39+00:00)
Title: Mark a need as out of scope

This is the Maslow counterpart to alphagov/govuk_need_api#33.

This adds a new button to Maslow to mark a need as 'out of scope'. A need marked as out of scope has a large notice below the need, but it can still be edited. At the moment, marking a need as out of scope is an irreversible action but this is likely to change in the future when we do some work around workflows and decision making.

The `in_scope` field is being used as a "read-only" field, similar to using `attr_protected` in ActiveModel. We create a writer accessor for the field, and we send it back to the API on create and update, but we don't permit it to be changed using mass-assignment.