rails/rails — pull request #8078 by nikitug (2012-10-30 20:18:22+00:00)
Title: Fix `attributes_before_type_cast` for serialised attributes.

Public method `attributes_before_type_cast` used to return internal AR structure (ActiveRecord::AttributeMethods::Serialization::Attribute), patch fixes this. Now behaves like `read_attribute_before_type_cast` and returns unserialised values.

Also it may need a backport to 3-2-stable.