softa/activerecord-postgres-hstore — Issue #13: Doesnt play nice with JSON serialization
Author: ruckus
Created: 2011-11-16 23:14:18+00:00
State: open

If one uses the new Rails 3.1 serialization coder:

```ruby
class PhotoMetadata < ActiveRecord::Base
serialize :exif, JSON
end
```

And has this gem loaded then any usages of a `PhotoMedata` blows up because YAML is being stored it is specified to use the JSON decoder, so the JSON parser blows up.

If one comments out the monkeypatch of `arel_attributes_values` in `lib/activerecord-postgres-hstore/activerecord.rb` then all is swell. So I know its related to that method directly.

I currently dont need to filter on hstore keys, so I can fork this repo and use a commented-out version, but going forward it might be an issue for others.