josevalim/active_model_serializers — Issue #32: ArraySerializer tries to call serializable_hash on primitive objects
Author: trak3r
Created: 2012-01-30 19:14:40+00:00
State: open

it's smart enough not to try to wrap non-serializable objects but when it does the actual serialization it doesn't re-check each item, and thus tries to serialize non-serializable objects resulting in errors like this:

NoMethodError (undefined method `serializable_hash' for "test3":String):

NoMethodError (undefined method `serializable_hash' for {:label=>"test3", :value=>1000012}:Hash):