clayallsopp/formotion — pull request #165 by nathanstitt (2013-10-27 20:23:56+00:00)
Title: Separate form hash from form creation

I'm using formation to set the attributes on a simple Settings model. However I disliked that I couldn't really modify the form that was generated.

This splits the form_hash generation into it's own method that can be over ridden by the superclass. This allows for things like:

def to_form_hash
hash = super
hash[:sections] << {
rows: [{ title: "Save", type: :submit }]
}
hash
end