- Fixes a bug where if params contained expected falsey values, the form would treat them as nil.
for instance
form.submit({likes_cat: false})would setlikes_catto nil instead of false.
- Add
assigned_attribute_namesmethod to get the list of attributes that have been assigned during the last call toassign_form_attributesorsubmit. This is useful in a context where you want to know which attributes have been passed to the form and only act on them rather than the whole attributes hash that might be partly empty (in API calls for example)
- Add callbacks for
assign_form_attributesandsubmit - Change behavior of
assign_form_attributes/submitto use the default value or nil if no value is provided, rather than keeping the value fromsetup
- Initial release