{"action":"created","comment":{"url":"https://api.github.com/repos/rails/rails/pulls/comments/67908779","id":67908779,"diff_hunk":"@@ -17,6 +22,18 @@ def encode(attribute_set, coder)\n         end\n       end\n \n+      # Decode a previously encoded +coder+.\n+      #\n+      # +coder+ should be the result of previously encoding an Active Record\n+      # model, using #encode.\n+      #\n+      # If +coder+ contains an 'attributes' key, then #decode returns the value\n+      # under 'attributes' key.\n+      #\n+      # Otherwise, decode will build an attributes hash from coder using the","path":"activerecord/lib/active_record/attribute_set/yaml_encoder.rb","position":24,"original_position":24,"commit_id":"2d2b0393483807f391f29c7a5fd8fe0e9e8471c5","original_commit_id":"2d2b0393483807f391f29c7a5fd8fe0e9e8471c5","user":{"login":"maclover7","id":3020626,"avatar_url":"https://avatars.githubusercontent.com/u/3020626?v=3","gravatar_id":"","url":"https://api.github.com/users/maclover7","html_url":"https://github.com/maclover7","followers_url":"https://api.github.com/users/maclover7/followers","following_url":"https://api.github.com/users/maclover7/following{/other_user}","gists_url":"https://api.github.com/users/maclover7/gists{/gist_id}","starred_url":"https://api.github.com/users/maclover7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maclover7/subscriptions","organizations_url":"https://api.github.com/users/maclover7/orgs","repos_url":"https://api.github.com/users/maclover7/repos","events_url":"https://api.github.com/users/maclover7/events{/privacy}","received_events_url":"https://api.github.com/users/maclover7/received_events","type":"User","site_admin":false},"body":"#decode","created_at":"2016-06-21T17:01:41Z","updated_at":"2016-06-21T17:01:41Z","html_url":"https://github.com/rails/rails/pull/25458#discussion_r67908779","pull_request_url":"https://api.github.com/repos/rails/rails/pulls/25458","_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/comments/67908779"},"html":{"href":"https://github.com/rails/rails/pull/25458#discussion_r67908779"},"pull_request":{"href":"https://api.github.com/repos/rails/rails/pulls/25458"}}},"pull_request":{"url":"https://api.github.com/repos/rails/rails/pulls/25458","id":74624470,"html_url":"https://github.com/rails/rails/pull/25458","diff_url":"https://github.com/rails/rails/pull/25458.diff","patch_url":"https://github.com/rails/rails/pull/25458.patch","issue_url":"https://api.github.com/repos/rails/rails/issues/25458","number":25458,"state":"open","locked":false,"title":"better docs for ActiveRecord::AttributeSet::YAMLEncoder#decode","user":{"login":"taboularasa","id":33557,"avatar_url":"https://avatars.githubusercontent.com/u/33557?v=3","gravatar_id":"","url":"https://api.github.com/users/taboularasa","html_url":"https://github.com/taboularasa","followers_url":"https://api.github.com/users/taboularasa/followers","following_url":"https://api.github.com/users/taboularasa/following{/other_user}","gists_url":"https://api.github.com/users/taboularasa/gists{/gist_id}","starred_url":"https://api.github.com/users/taboularasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taboularasa/subscriptions","organizations_url":"https://api.github.com/users/taboularasa/orgs","repos_url":"https://api.github.com/users/taboularasa/repos","events_url":"https://api.github.com/users/taboularasa/events{/privacy}","received_events_url":"https://api.github.com/users/taboularasa/received_events","type":"User","site_admin":false},"body":null,"created_at":"2016-06-21T14:42:02Z","updated_at":"2016-06-21T17:01:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c6fcdee6c6ff13b689bd9b597891774a6708998","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rails/rails/pulls/25458/commits","review_comments_url":"https://api.github.com/repos/rails/rails/pulls/25458/comments","review_comment_url":"https://api.github.com/repos/rails/rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/rails/issues/25458/comments","statuses_url":"https://api.github.com/repos/rails/rails/statuses/2d2b0393483807f391f29c7a5fd8fe0e9e8471c5","head":{"label":"taboularasa:taboularasa/update-docs-ActiveRecord__AttributeSet__YAMLEncoder#decode-for-pr","ref":"taboularasa/update-docs-ActiveRecord__AttributeSet__YAMLEncoder#decode-for-pr","sha":"2d2b0393483807f391f29c7a5fd8fe0e9e8471c5","user":{"login":"taboularasa","id":33557,"avatar_url":"https://avatars.githubusercontent.com/u/33557?v=3","gravatar_id":"","url":"https://api.github.com/users/taboularasa","html_url":"https://github.com/taboularasa","followers_url":"https://api.github.com/users/taboularasa/followers","following_url":"https://api.github.com/users/taboularasa/following{/other_user}","gists_url":"https://api.github.com/users/taboularasa/gists{/gist_id}","starred_url":"https://api.github.com/users/taboularasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taboularasa/subscriptions","organizations_url":"https://api.github.com/users/taboularasa/orgs","repos_url":"https://api.github.com/users/taboularasa/repos","events_url":"https://api.github.com/users/taboularasa/events{/privacy}","received_events_url":"https://api.github.com/users/taboularasa/received_events","type":"User","site_admin":false},"repo":{"id":61562171,"name":"rails","full_name":"taboularasa/rails","owner":{"login":"taboularasa","id":33557,"avatar_url":"https://avatars.githubusercontent.com/u/33557?v=3","gravatar_id":"","url":"https://api.github.com/users/taboularasa","html_url":"https://github.com/taboularasa","followers_url":"https://api.github.com/users/taboularasa/followers","following_url":"https://api.github.com/users/taboularasa/following{/other_user}","gists_url":"https://api.github.com/users/taboularasa/gists{/gist_id}","starred_url":"https://api.github.com/users/taboularasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taboularasa/subscriptions","organizations_url":"https://api.github.com/users/taboularasa/orgs","repos_url":"https://api.github.com/users/taboularasa/repos","events_url":"https://api.github.com/users/taboularasa/events{/privacy}","received_events_url":"https://api.github.com/users/taboularasa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/taboularasa/rails","description":"Ruby on Rails","fork":true,"url":"https://api.github.com/repos/taboularasa/rails","forks_url":"https://api.github.com/repos/taboularasa/rails/forks","keys_url":"https://api.github.com/repos/taboularasa/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/taboularasa/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/taboularasa/rails/teams","hooks_url":"https://api.github.com/repos/taboularasa/rails/hooks","issue_events_url":"https://api.github.com/repos/taboularasa/rails/issues/events{/number}","events_url":"https://api.github.com/repos/taboularasa/rails/events","assignees_url":"https://api.github.com/repos/taboularasa/rails/assignees{/user}","branches_url":"https://api.github.com/repos/taboularasa/rails/branches{/branch}","tags_url":"https://api.github.com/repos/taboularasa/rails/tags","blobs_url":"https://api.github.com/repos/taboularasa/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/taboularasa/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/taboularasa/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/taboularasa/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/taboularasa/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/taboularasa/rails/languages","stargazers_url":"https://api.github.com/repos/taboularasa/rails/stargazers","contributors_url":"https://api.github.com/repos/taboularasa/rails/contributors","subscribers_url":"https://api.github.com/repos/taboularasa/rails/subscribers","subscription_url":"https://api.github.com/repos/taboularasa/rails/subscription","commits_url":"https://api.github.com/repos/taboularasa/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/taboularasa/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/taboularasa/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/taboularasa/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/taboularasa/rails/contents/{+path}","compare_url":"https://api.github.com/repos/taboularasa/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/taboularasa/rails/merges","archive_url":"https://api.github.com/repos/taboularasa/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/taboularasa/rails/downloads","issues_url":"https://api.github.com/repos/taboularasa/rails/issues{/number}","pulls_url":"https://api.github.com/repos/taboularasa/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/taboularasa/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/taboularasa/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/taboularasa/rails/labels{/name}","releases_url":"https://api.github.com/repos/taboularasa/rails/releases{/id}","deployments_url":"https://api.github.com/repos/taboularasa/rails/deployments","created_at":"2016-06-20T16:16:40Z","updated_at":"2016-06-20T16:17:48Z","pushed_at":"2016-06-21T16:53:59Z","git_url":"git://github.com/taboularasa/rails.git","ssh_url":"git@github.com:taboularasa/rails.git","clone_url":"https://github.com/taboularasa/rails.git","svn_url":"https://github.com/taboularasa/rails","homepage":"http://rubyonrails.org","size":138807,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rails:master","ref":"master","sha":"7ad8093b0eaff02bda6bb2999e8a81a481667aab","user":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":8514,"name":"rails","full_name":"rails/rails","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars.githubusercontent.com/u/4223?v=3","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/rails","description":"Ruby on Rails","fork":false,"url":"https://api.github.com/repos/rails/rails","forks_url":"https://api.github.com/repos/rails/rails/forks","keys_url":"https://api.github.com/repos/rails/rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/rails/teams","hooks_url":"https://api.github.com/repos/rails/rails/hooks","issue_events_url":"https://api.github.com/repos/rails/rails/issues/events{/number}","events_url":"https://api.github.com/repos/rails/rails/events","assignees_url":"https://api.github.com/repos/rails/rails/assignees{/user}","branches_url":"https://api.github.com/repos/rails/rails/branches{/branch}","tags_url":"https://api.github.com/repos/rails/rails/tags","blobs_url":"https://api.github.com/repos/rails/rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/rails/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/rails/languages","stargazers_url":"https://api.github.com/repos/rails/rails/stargazers","contributors_url":"https://api.github.com/repos/rails/rails/contributors","subscribers_url":"https://api.github.com/repos/rails/rails/subscribers","subscription_url":"https://api.github.com/repos/rails/rails/subscription","commits_url":"https://api.github.com/repos/rails/rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails/rails/contents/{+path}","compare_url":"https://api.github.com/repos/rails/rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/rails/merges","archive_url":"https://api.github.com/repos/rails/rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/rails/downloads","issues_url":"https://api.github.com/repos/rails/rails/issues{/number}","pulls_url":"https://api.github.com/repos/rails/rails/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/rails/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/rails/labels{/name}","releases_url":"https://api.github.com/repos/rails/rails/releases{/id}","deployments_url":"https://api.github.com/repos/rails/rails/deployments","created_at":"2008-04-11T02:19:47Z","updated_at":"2016-06-21T16:24:37Z","pushed_at":"2016-06-21T16:54:04Z","git_url":"git://github.com/rails/rails.git","ssh_url":"git@github.com:rails/rails.git","clone_url":"https://github.com/rails/rails.git","svn_url":"https://github.com/rails/rails","homepage":"http://rubyonrails.org","size":347818,"stargazers_count":31662,"watchers_count":31662,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12807,"mirror_url":null,"open_issues_count":1063,"forks":12807,"open_issues":1063,"watchers":31662,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/rails/pulls/25458"},"html":{"href":"https://github.com/rails/rails/pull/25458"},"issue":{"href":"https://api.github.com/repos/rails/rails/issues/25458"},"comments":{"href":"https://api.github.com/repos/rails/rails/issues/25458/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/rails/pulls/25458/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/rails/pulls/25458/commits"},"statuses":{"href":"https://api.github.com/repos/rails/rails/statuses/2d2b0393483807f391f29c7a5fd8fe0e9e8471c5"}}}}
{"actor":{"display_login":"maclover7"}}