{"action":"created","issue":{"url":"https://api.github.com/repos/diogob/activerecord-postgres-hstore/issues/113","labels_url":"https://api.github.com/repos/diogob/activerecord-postgres-hstore/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/diogob/activerecord-postgres-hstore/issues/113/comments","events_url":"https://api.github.com/repos/diogob/activerecord-postgres-hstore/issues/113/events","html_url":"https://github.com/diogob/activerecord-postgres-hstore/issues/113","id":18557606,"number":113,"title":"NoMethodError: undefined method `scan' for {}:Hash","user":{"login":"jerodsanto","id":8212,"avatar_url":"https://avatars.githubusercontent.com/u/8212?v=3","gravatar_id":"","url":"https://api.github.com/users/jerodsanto","html_url":"https://github.com/jerodsanto","followers_url":"https://api.github.com/users/jerodsanto/followers","following_url":"https://api.github.com/users/jerodsanto/following{/other_user}","gists_url":"https://api.github.com/users/jerodsanto/gists{/gist_id}","starred_url":"https://api.github.com/users/jerodsanto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jerodsanto/subscriptions","organizations_url":"https://api.github.com/users/jerodsanto/orgs","repos_url":"https://api.github.com/users/jerodsanto/repos","events_url":"https://api.github.com/users/jerodsanto/events{/privacy}","received_events_url":"https://api.github.com/users/jerodsanto/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2013-08-26T16:02:53Z","updated_at":"2015-04-29T14:24:18Z","closed_at":"2013-08-26T16:08:27Z","body":"I'm on rails 4.0.0 and your master branch. When I try to create an object with an hstore attribute I get: \r\n\r\n    NoMethodError: undefined method `scan' for {}:Hash`.\r\n\r\nThis is happening inside `PgHstore.load` when calling `scan` on the passed in default Hash that is sent to it from `ActiveRecord::Coders::Hstore#from_hstore`.\r\n\r\nI believe `PgHstore.load` is expecting a string here, but the Hstore coder is sending it a hash. Is that an accurate assessment?"},"comment":{"url":"https://api.github.com/repos/diogob/activerecord-postgres-hstore/issues/comments/97446895","html_url":"https://github.com/diogob/activerecord-postgres-hstore/issues/113#issuecomment-97446895","issue_url":"https://api.github.com/repos/diogob/activerecord-postgres-hstore/issues/113","id":97446895,"user":{"login":"tsov","id":1802885,"avatar_url":"https://avatars.githubusercontent.com/u/1802885?v=3","gravatar_id":"","url":"https://api.github.com/users/tsov","html_url":"https://github.com/tsov","followers_url":"https://api.github.com/users/tsov/followers","following_url":"https://api.github.com/users/tsov/following{/other_user}","gists_url":"https://api.github.com/users/tsov/gists{/gist_id}","starred_url":"https://api.github.com/users/tsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tsov/subscriptions","organizations_url":"https://api.github.com/users/tsov/orgs","repos_url":"https://api.github.com/users/tsov/repos","events_url":"https://api.github.com/users/tsov/events{/privacy}","received_events_url":"https://api.github.com/users/tsov/received_events","type":"User","site_admin":false},"created_at":"2015-04-29T14:24:18Z","updated_at":"2015-04-29T14:24:18Z","body":"I am on Rails 3.2.11 using activerecord-postgres-hstore 0.7.7 and Identity Cache 0.7.7\r\n\r\nWhen I `fetch` models from cache and try to call as_json on them I get the same error =>\r\n\r\n```ruby\r\nNoMethodError: undefined method `scan' for {}:Hash`.\r\n```\r\n\r\nproblem is gone if I remove the line\r\n\r\n```ruby\r\nserialize :properties, ActiveRecord::Coders::Hstore\r\n```\r\n\r\nFound out you can use `store_accessor` instead, which also removes the error, but it does not serialize my property anymore :/\r\n\r\nNeed any more info?"}}