Backport #8078: Fix `attributes_before_type_cast` for serialised attributes #8082

Merged
merged 1 commit into from Nov 9, 2012
Commits on Nov 9, 2012
  1. Backport #8078: Fix `attributes_before_type_cast` for serialised attr…

    nikitug committed with nikitug Oct 30, 2012
    …ibutes.
    
    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.