| Issue 533: | Serialized Hash in model attribute broken | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. create a model with an attribute serializing its content 2. create an activescaffold for the model with a form field override for the attribute preparing the hash data. 3. try to save/update a model What is the expected output? What do you see instead? The model should be updated with the new attribute value, but the attribute is nil when the model is saved. What version (or revision) of the product are you using? 1.1.1 If this bug causes an exception, please paste at least the first 20 lines below. N/A The bug is in lib/attribute_params.rb which doesn't have a default behavior when dealing with Hash (column.form_ui == :select and associations are OK, but simple serialized Hash in the general case are not). Please see the attached patch for a fix. |
|
,
Nov 09, 2008
(No comment was entered for this change.)
Status: Verify
Labels: -Priority-Medium Priority-Low |
|
,
Jan 22, 2009
(No comment was entered for this change.)
Labels: -Type-Defect Type-Patch
|
|
|
|