rails/rails — Issue #4004: serialized attribute returns ActiveRecord::AttributeMethods::Serialization::Attribute
Author: masterkain
Created: 2011-12-16 16:29:39+00:00
State: open

class MyClass < ActiveRecord::Base
serialize :search_params, Hash

1.9.3p0 :030 > MyClass.last.search_params
=> #, value="---\n:test: hi\n", state=:serialized>

AFAIK it should return the typecasted value. Maybe related: https://github.com/rails/rails/commit/f4853dc17490c88966721ca1ad422baf6ae49745