rails/rails — pull request #8082 by nikitug (2012-10-31 04:33:52+00:00)
Title: Backport #8078: 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.