My favorites | Sign in
Project Logo
             
New issue | Search
for
| Advanced search | Search tips
Issue 533: Serialized Hash in model attribute broken
1 person starred this issue and may be notified of changes. Back to list
Status:  Verify
Owner:  ----
Type-Patch
Priority-Low


Sign in to add a comment
 
Reported by lionel.bouton, Feb 11, 2008
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.
as_hash.patch
492 bytes   Download
Comment 1 by mr.gaffo, Nov 09, 2008
(No comment was entered for this change.)
Status: Verify
Labels: -Priority-Medium Priority-Low
Comment 2 by mr.gaffo, Jan 22, 2009
(No comment was entered for this change.)
Labels: -Type-Defect Type-Patch
Sign in to add a comment

Hosted by Google Code