{"action":"created","issue":{"url":"https://api.github.com/repos/hooopo/second_level_cache/issues/28","labels_url":"https://api.github.com/repos/hooopo/second_level_cache/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/hooopo/second_level_cache/issues/28/comments","events_url":"https://api.github.com/repos/hooopo/second_level_cache/issues/28/events","html_url":"https://github.com/hooopo/second_level_cache/issues/28","id":97871886,"number":28,"title":"如果遇到 serialize 字段，会有无法转换字段的错误","user":{"login":"huacnlee","id":5518,"avatar_url":"https://avatars.githubusercontent.com/u/5518?v=3","gravatar_id":"","url":"https://api.github.com/users/huacnlee","html_url":"https://github.com/huacnlee","followers_url":"https://api.github.com/users/huacnlee/followers","following_url":"https://api.github.com/users/huacnlee/following{/other_user}","gists_url":"https://api.github.com/users/huacnlee/gists{/gist_id}","starred_url":"https://api.github.com/users/huacnlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huacnlee/subscriptions","organizations_url":"https://api.github.com/users/huacnlee/orgs","repos_url":"https://api.github.com/users/huacnlee/repos","events_url":"https://api.github.com/users/huacnlee/events{/privacy}","received_events_url":"https://api.github.com/users/huacnlee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-29T06:40:12Z","updated_at":"2015-07-29T07:07:50Z","closed_at":null,"body":"```ruby\r\nclass User < ActiveRecord::Base\r\n  serialize :info, JSON\r\nend\r\n```\r\n\r\n这个时候，从 Cache 里面取出来的数据，如果调用序列化动作的时候会有错误\r\n\r\n```ruby\r\n@user = User.find(1)\r\n@user.inspect\r\n```\r\n\r\n```\r\nno implicit conversion of ActiveRecord::AttributeMethods::Serialization::Attribute into String\r\n```"},"comment":{"url":"https://api.github.com/repos/hooopo/second_level_cache/issues/comments/125865473","html_url":"https://github.com/hooopo/second_level_cache/issues/28#issuecomment-125865473","issue_url":"https://api.github.com/repos/hooopo/second_level_cache/issues/28","id":125865473,"user":{"login":"huacnlee","id":5518,"avatar_url":"https://avatars.githubusercontent.com/u/5518?v=3","gravatar_id":"","url":"https://api.github.com/users/huacnlee","html_url":"https://github.com/huacnlee","followers_url":"https://api.github.com/users/huacnlee/followers","following_url":"https://api.github.com/users/huacnlee/following{/other_user}","gists_url":"https://api.github.com/users/huacnlee/gists{/gist_id}","starred_url":"https://api.github.com/users/huacnlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huacnlee/subscriptions","organizations_url":"https://api.github.com/users/huacnlee/orgs","repos_url":"https://api.github.com/users/huacnlee/repos","events_url":"https://api.github.com/users/huacnlee/events{/privacy}","received_events_url":"https://api.github.com/users/huacnlee/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T07:07:50Z","updated_at":"2015-07-29T07:07:50Z","body":"@moioo 你只是修复了 YAML 的，JSON 类型的还是无法转换"}}