This project is archived and is in readonly mode.
serialize'd array not unserializing properly
-
auzigog
Sorry, those #'s in the middle were supposed to look like this:
"#<YAML::Object:0x52cc220 @ivars={}, @class="Peg">",
"#<YAML::Object:0x52cc220 @ivars={}, @class="Peg">",
"#<YAML::Object:0x52cc220 @ivars={}, @class="Peg">"
-
RSL
How is this not a has_many association?
-
auzigog
Because Peg is not a model? It doesn't deserve to be a model. There are hundreds of pegs per row and there is no point in wasting tons of database rows with simple objects that could easily be serialized instead.
-
Phil Orwig
Shouldn't including peg.rb in lib/ do the trick for this?
-
auzigog
Am I wrong in assuming that serialize isn't working as expected?
Using composed_of doesn't resolve that unexpected behavior, it just fixed my problem.