{"action":"closed","number":3938,"pull_request":{"url":"https://api.github.com/repos/mongoid/mongoid/pulls/3938","id":28662722,"html_url":"https://github.com/mongoid/mongoid/pull/3938","diff_url":"https://github.com/mongoid/mongoid/pull/3938.diff","patch_url":"https://github.com/mongoid/mongoid/pull/3938.patch","issue_url":"https://api.github.com/repos/mongoid/mongoid/issues/3938","number":3938,"state":"closed","locked":false,"title":"3812 validation context failed","user":{"login":"d4rk5eed","id":4236587,"avatar_url":"https://avatars.githubusercontent.com/u/4236587?v=3","gravatar_id":"","url":"https://api.github.com/users/d4rk5eed","html_url":"https://github.com/d4rk5eed","followers_url":"https://api.github.com/users/d4rk5eed/followers","following_url":"https://api.github.com/users/d4rk5eed/following{/other_user}","gists_url":"https://api.github.com/users/d4rk5eed/gists{/gist_id}","starred_url":"https://api.github.com/users/d4rk5eed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d4rk5eed/subscriptions","organizations_url":"https://api.github.com/users/d4rk5eed/orgs","repos_url":"https://api.github.com/users/d4rk5eed/repos","events_url":"https://api.github.com/users/d4rk5eed/events{/privacy}","received_events_url":"https://api.github.com/users/d4rk5eed/received_events","type":"User","site_admin":false},"body":"Based on #3812 .\r\nAdded context verification in prepare_insert and prepare_update methods","created_at":"2015-02-04T18:33:14Z","updated_at":"2015-02-17T16:25:39Z","closed_at":"2015-02-17T16:25:39Z","merged_at":"2015-02-17T16:25:39Z","merge_commit_sha":"66b5b9e934743b0cb48c42fe7770653238463a29","assignee":null,"milestone":{"url":"https://api.github.com/repos/mongoid/mongoid/milestones/75","labels_url":"https://api.github.com/repos/mongoid/mongoid/milestones/75/labels","id":616839,"number":75,"title":"4.0.2","description":"","creator":{"login":"durran","id":9030,"avatar_url":"https://avatars.githubusercontent.com/u/9030?v=3","gravatar_id":"","url":"https://api.github.com/users/durran","html_url":"https://github.com/durran","followers_url":"https://api.github.com/users/durran/followers","following_url":"https://api.github.com/users/durran/following{/other_user}","gists_url":"https://api.github.com/users/durran/gists{/gist_id}","starred_url":"https://api.github.com/users/durran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/durran/subscriptions","organizations_url":"https://api.github.com/users/durran/orgs","repos_url":"https://api.github.com/users/durran/repos","events_url":"https://api.github.com/users/durran/events{/privacy}","received_events_url":"https://api.github.com/users/durran/received_events","type":"User","site_admin":false},"open_issues":44,"closed_issues":7,"state":"open","created_at":"2014-04-01T14:32:09Z","updated_at":"2015-02-17T16:25:39Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/mongoid/mongoid/pulls/3938/commits","review_comments_url":"https://api.github.com/repos/mongoid/mongoid/pulls/3938/comments","review_comment_url":"https://api.github.com/repos/mongoid/mongoid/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mongoid/mongoid/issues/3938/comments","statuses_url":"https://api.github.com/repos/mongoid/mongoid/statuses/eed9085f118fec45fbd096a53f718e39723894de","head":{"label":"d4rk5eed:3812_validation_context_failed","ref":"3812_validation_context_failed","sha":"eed9085f118fec45fbd096a53f718e39723894de","user":{"login":"d4rk5eed","id":4236587,"avatar_url":"https://avatars.githubusercontent.com/u/4236587?v=3","gravatar_id":"","url":"https://api.github.com/users/d4rk5eed","html_url":"https://github.com/d4rk5eed","followers_url":"https://api.github.com/users/d4rk5eed/followers","following_url":"https://api.github.com/users/d4rk5eed/following{/other_user}","gists_url":"https://api.github.com/users/d4rk5eed/gists{/gist_id}","starred_url":"https://api.github.com/users/d4rk5eed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d4rk5eed/subscriptions","organizations_url":"https://api.github.com/users/d4rk5eed/orgs","repos_url":"https://api.github.com/users/d4rk5eed/repos","events_url":"https://api.github.com/users/d4rk5eed/events{/privacy}","received_events_url":"https://api.github.com/users/d4rk5eed/received_events","type":"User","site_admin":false},"repo":{"id":30309531,"name":"mongoid","full_name":"d4rk5eed/mongoid","owner":{"login":"d4rk5eed","id":4236587,"avatar_url":"https://avatars.githubusercontent.com/u/4236587?v=3","gravatar_id":"","url":"https://api.github.com/users/d4rk5eed","html_url":"https://github.com/d4rk5eed","followers_url":"https://api.github.com/users/d4rk5eed/followers","following_url":"https://api.github.com/users/d4rk5eed/following{/other_user}","gists_url":"https://api.github.com/users/d4rk5eed/gists{/gist_id}","starred_url":"https://api.github.com/users/d4rk5eed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d4rk5eed/subscriptions","organizations_url":"https://api.github.com/users/d4rk5eed/orgs","repos_url":"https://api.github.com/users/d4rk5eed/repos","events_url":"https://api.github.com/users/d4rk5eed/events{/privacy}","received_events_url":"https://api.github.com/users/d4rk5eed/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/d4rk5eed/mongoid","description":"Ruby ODM framework for MongoDB","fork":true,"url":"https://api.github.com/repos/d4rk5eed/mongoid","forks_url":"https://api.github.com/repos/d4rk5eed/mongoid/forks","keys_url":"https://api.github.com/repos/d4rk5eed/mongoid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/d4rk5eed/mongoid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/d4rk5eed/mongoid/teams","hooks_url":"https://api.github.com/repos/d4rk5eed/mongoid/hooks","issue_events_url":"https://api.github.com/repos/d4rk5eed/mongoid/issues/events{/number}","events_url":"https://api.github.com/repos/d4rk5eed/mongoid/events","assignees_url":"https://api.github.com/repos/d4rk5eed/mongoid/assignees{/user}","branches_url":"https://api.github.com/repos/d4rk5eed/mongoid/branches{/branch}","tags_url":"https://api.github.com/repos/d4rk5eed/mongoid/tags","blobs_url":"https://api.github.com/repos/d4rk5eed/mongoid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/d4rk5eed/mongoid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/d4rk5eed/mongoid/git/refs{/sha}","trees_url":"https://api.github.com/repos/d4rk5eed/mongoid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/d4rk5eed/mongoid/statuses/{sha}","languages_url":"https://api.github.com/repos/d4rk5eed/mongoid/languages","stargazers_url":"https://api.github.com/repos/d4rk5eed/mongoid/stargazers","contributors_url":"https://api.github.com/repos/d4rk5eed/mongoid/contributors","subscribers_url":"https://api.github.com/repos/d4rk5eed/mongoid/subscribers","subscription_url":"https://api.github.com/repos/d4rk5eed/mongoid/subscription","commits_url":"https://api.github.com/repos/d4rk5eed/mongoid/commits{/sha}","git_commits_url":"https://api.github.com/repos/d4rk5eed/mongoid/git/commits{/sha}","comments_url":"https://api.github.com/repos/d4rk5eed/mongoid/comments{/number}","issue_comment_url":"https://api.github.com/repos/d4rk5eed/mongoid/issues/comments/{number}","contents_url":"https://api.github.com/repos/d4rk5eed/mongoid/contents/{+path}","compare_url":"https://api.github.com/repos/d4rk5eed/mongoid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/d4rk5eed/mongoid/merges","archive_url":"https://api.github.com/repos/d4rk5eed/mongoid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/d4rk5eed/mongoid/downloads","issues_url":"https://api.github.com/repos/d4rk5eed/mongoid/issues{/number}","pulls_url":"https://api.github.com/repos/d4rk5eed/mongoid/pulls{/number}","milestones_url":"https://api.github.com/repos/d4rk5eed/mongoid/milestones{/number}","notifications_url":"https://api.github.com/repos/d4rk5eed/mongoid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/d4rk5eed/mongoid/labels{/name}","releases_url":"https://api.github.com/repos/d4rk5eed/mongoid/releases{/id}","created_at":"2015-02-04T16:48:29Z","updated_at":"2015-02-04T16:48:32Z","pushed_at":"2015-02-17T08:31:17Z","git_url":"git://github.com/d4rk5eed/mongoid.git","ssh_url":"git@github.com:d4rk5eed/mongoid.git","clone_url":"https://github.com/d4rk5eed/mongoid.git","svn_url":"https://github.com/d4rk5eed/mongoid","homepage":"http://mongoid.org","size":12930,"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":"mongoid:master","ref":"master","sha":"3619371def9089580a755fdef799d4acb485b2c7","user":{"login":"mongoid","id":262752,"avatar_url":"https://avatars.githubusercontent.com/u/262752?v=3","gravatar_id":"","url":"https://api.github.com/users/mongoid","html_url":"https://github.com/mongoid","followers_url":"https://api.github.com/users/mongoid/followers","following_url":"https://api.github.com/users/mongoid/following{/other_user}","gists_url":"https://api.github.com/users/mongoid/gists{/gist_id}","starred_url":"https://api.github.com/users/mongoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongoid/subscriptions","organizations_url":"https://api.github.com/users/mongoid/orgs","repos_url":"https://api.github.com/users/mongoid/repos","events_url":"https://api.github.com/users/mongoid/events{/privacy}","received_events_url":"https://api.github.com/users/mongoid/received_events","type":"Organization","site_admin":false},"repo":{"id":309009,"name":"mongoid","full_name":"mongoid/mongoid","owner":{"login":"mongoid","id":262752,"avatar_url":"https://avatars.githubusercontent.com/u/262752?v=3","gravatar_id":"","url":"https://api.github.com/users/mongoid","html_url":"https://github.com/mongoid","followers_url":"https://api.github.com/users/mongoid/followers","following_url":"https://api.github.com/users/mongoid/following{/other_user}","gists_url":"https://api.github.com/users/mongoid/gists{/gist_id}","starred_url":"https://api.github.com/users/mongoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mongoid/subscriptions","organizations_url":"https://api.github.com/users/mongoid/orgs","repos_url":"https://api.github.com/users/mongoid/repos","events_url":"https://api.github.com/users/mongoid/events{/privacy}","received_events_url":"https://api.github.com/users/mongoid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mongoid/mongoid","description":"Ruby ODM framework for MongoDB","fork":false,"url":"https://api.github.com/repos/mongoid/mongoid","forks_url":"https://api.github.com/repos/mongoid/mongoid/forks","keys_url":"https://api.github.com/repos/mongoid/mongoid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mongoid/mongoid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mongoid/mongoid/teams","hooks_url":"https://api.github.com/repos/mongoid/mongoid/hooks","issue_events_url":"https://api.github.com/repos/mongoid/mongoid/issues/events{/number}","events_url":"https://api.github.com/repos/mongoid/mongoid/events","assignees_url":"https://api.github.com/repos/mongoid/mongoid/assignees{/user}","branches_url":"https://api.github.com/repos/mongoid/mongoid/branches{/branch}","tags_url":"https://api.github.com/repos/mongoid/mongoid/tags","blobs_url":"https://api.github.com/repos/mongoid/mongoid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mongoid/mongoid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mongoid/mongoid/git/refs{/sha}","trees_url":"https://api.github.com/repos/mongoid/mongoid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mongoid/mongoid/statuses/{sha}","languages_url":"https://api.github.com/repos/mongoid/mongoid/languages","stargazers_url":"https://api.github.com/repos/mongoid/mongoid/stargazers","contributors_url":"https://api.github.com/repos/mongoid/mongoid/contributors","subscribers_url":"https://api.github.com/repos/mongoid/mongoid/subscribers","subscription_url":"https://api.github.com/repos/mongoid/mongoid/subscription","commits_url":"https://api.github.com/repos/mongoid/mongoid/commits{/sha}","git_commits_url":"https://api.github.com/repos/mongoid/mongoid/git/commits{/sha}","comments_url":"https://api.github.com/repos/mongoid/mongoid/comments{/number}","issue_comment_url":"https://api.github.com/repos/mongoid/mongoid/issues/comments/{number}","contents_url":"https://api.github.com/repos/mongoid/mongoid/contents/{+path}","compare_url":"https://api.github.com/repos/mongoid/mongoid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mongoid/mongoid/merges","archive_url":"https://api.github.com/repos/mongoid/mongoid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mongoid/mongoid/downloads","issues_url":"https://api.github.com/repos/mongoid/mongoid/issues{/number}","pulls_url":"https://api.github.com/repos/mongoid/mongoid/pulls{/number}","milestones_url":"https://api.github.com/repos/mongoid/mongoid/milestones{/number}","notifications_url":"https://api.github.com/repos/mongoid/mongoid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mongoid/mongoid/labels{/name}","releases_url":"https://api.github.com/repos/mongoid/mongoid/releases{/id}","created_at":"2009-09-16T16:24:56Z","updated_at":"2015-02-17T07:02:10Z","pushed_at":"2015-02-17T16:25:39Z","git_url":"git://github.com/mongoid/mongoid.git","ssh_url":"git@github.com:mongoid/mongoid.git","clone_url":"https://github.com/mongoid/mongoid.git","svn_url":"https://github.com/mongoid/mongoid","homepage":"http://mongoid.org","size":18657,"stargazers_count":3134,"watchers_count":3134,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1079,"mirror_url":null,"open_issues_count":317,"forks":1079,"open_issues":317,"watchers":3134,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mongoid/mongoid/pulls/3938"},"html":{"href":"https://github.com/mongoid/mongoid/pull/3938"},"issue":{"href":"https://api.github.com/repos/mongoid/mongoid/issues/3938"},"comments":{"href":"https://api.github.com/repos/mongoid/mongoid/issues/3938/comments"},"review_comments":{"href":"https://api.github.com/repos/mongoid/mongoid/pulls/3938/comments"},"review_comment":{"href":"https://api.github.com/repos/mongoid/mongoid/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mongoid/mongoid/pulls/3938/commits"},"statuses":{"href":"https://api.github.com/repos/mongoid/mongoid/statuses/eed9085f118fec45fbd096a53f718e39723894de"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"arthurnn","id":833383,"avatar_url":"https://avatars.githubusercontent.com/u/833383?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurnn","html_url":"https://github.com/arthurnn","followers_url":"https://api.github.com/users/arthurnn/followers","following_url":"https://api.github.com/users/arthurnn/following{/other_user}","gists_url":"https://api.github.com/users/arthurnn/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurnn/subscriptions","organizations_url":"https://api.github.com/users/arthurnn/orgs","repos_url":"https://api.github.com/users/arthurnn/repos","events_url":"https://api.github.com/users/arthurnn/events{/privacy}","received_events_url":"https://api.github.com/users/arthurnn/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":48,"deletions":2,"changed_files":5}}