rails/rails — pull request #5586 by laserlemon (2012-03-26 12:48:37+00:00)
Title: Enable use of ActiveSupport::StringInquirer as an ActiveRecord::Serialization coder

The purpose of this is to allow `ActiveSupport::StringInquirer` to be used alongside ActiveRecord's `serialize` method, like so:

```ruby
class Car < ActiveRecord::Base
serialize :color, ActiveSupport::StringInquirer
end

car = Car.create(color: "red")
car.color.red? # => true
```

Because this straddles the line between ActiveSupport and ActiveRecord, I wasn't exactly sure of the proper place for this, so I'm certainly willing to move it around if need be.