BMC password doesn't save
fixes #2489 - fixes BMC password caused by rails bug accepts_nested_attributes_for and serialized child field
#3 Updated by Joseph Magen about 9 years ago
I found the bug, but I don't have a workaround yet. It appears to be a Rails bug.
If there is accepts_nested_attributes_for and a serialized field on the child object (attrs in Nic::Base), then the child object(attrs) is not updated IF the only fields that are changed are the elements of the serialized hash attrs (:username, :password, :provider). If another field on the interfaces form changes (i.e. :mac) in addition to :password, then everything saves fine. If ONLY :password is changed for the interface, then it appears rails does NOT recognize that attrs is DIRTY when @host. update_attributes and therefore NOTHING for interface is updated.