Displaying 1 result from an estimated 1 matches for "mymodelset".
Did you mean:
mymodels
2010 Dec 08
0
ActiveRecord serialize field and SerializationTypeMismatch
Hello.
In one of my ActiveRecord models I specified a a serialize field:
serialize :settings MyModelSettings
If I understand the documentation correctly this restricts settings to
the class MyModelSettings. The problem is that this is so restrictive
that I even don''t know how to initialize the field.
MyModel.new
or even
MyModel.new(:settings => MyModelSettings)
everything I do leads to...