Fixed activerecord serialization before 4.1