avoinministerio/avoinministerio — pull request #210 by jyrkive (2012-08-01 11:22:19+00:00)
Title: Save the signature object in SignaturesController actions

In Pull Request #202, I made Signature#state inaccessible for mass assignment. The point of the change was that you can no longer accidentally change signature state with the #update-attributes method. Therefore I edited SignaturesController actions so that they use the #state= accessor instead of #update-attributes.

However, there was one thing #update-attributes did but #state= doesn't: saving the signature. Now the object isn't saved in some actions, which may cause problems.

This commit fixes the issue. In addition, I extended automated tests so that they fail if the signature isn't saved.