moneyadviceservice/dough-ruby — pull request #5 by modsognir (2014-05-28 10:18:34+00:00)
Title: Validation Form Builder uses the form's model by default

I've seen usage examples in nested forms such as `f.errors_for person.object, :salary`. This isn't necessary as `person.errors_for :salary` will have the exact same effect - the form builder has access to the correct object in the correct context.

This pull request defaults to using the internal object while allowing for a model to be passed in with the same syntax if necessary.