rails/rails — pull request #4902 by simi (2012-02-06 07:10:08+00:00)
Title: Fixes #4837 - value_before_type_cast returns value 

Fixes #4837 - value_before_type_cast returns value not ActiveRecord::AttributeMethods::Serialization::Attribute

Hello. I found a solution how to fix #4837. If you will agree with this pach, I need to help with test. I tried to use

``` ruby
@topic = Topic.new

assert_dom_equal(
'', text_field(:topic, :content)
)
```
but because of Topic is not real AR model, it throws ```undefined method serialized_value for nil```. Should I fake behavior to that model in test ?

Also new "custom serializer option" feature is not mentioned in docs. So if you will be happy with this PR, I can improve some docs also.