{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/sortlist/paranoia/pulls/1","id":57014643,"html_url":"https://github.com/sortlist/paranoia/pull/1","diff_url":"https://github.com/sortlist/paranoia/pull/1.diff","patch_url":"https://github.com/sortlist/paranoia/pull/1.patch","issue_url":"https://api.github.com/repos/sortlist/paranoia/issues/1","number":1,"state":"open","locked":false,"title":"relation.and with relation.where","user":{"login":"wwlsascha","id":5073881,"avatar_url":"https://avatars.githubusercontent.com/u/5073881?v=3","gravatar_id":"","url":"https://api.github.com/users/wwlsascha","html_url":"https://github.com/wwlsascha","followers_url":"https://api.github.com/users/wwlsascha/followers","following_url":"https://api.github.com/users/wwlsascha/following{/other_user}","gists_url":"https://api.github.com/users/wwlsascha/gists{/gist_id}","starred_url":"https://api.github.com/users/wwlsascha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wwlsascha/subscriptions","organizations_url":"https://api.github.com/users/wwlsascha/orgs","repos_url":"https://api.github.com/users/wwlsascha/repos","events_url":"https://api.github.com/users/wwlsascha/events{/privacy}","received_events_url":"https://api.github.com/users/wwlsascha/received_events","type":"User","site_admin":false},"body":"Am i missing something? Might the switch from and to where already solve the problem?","created_at":"2016-01-24T21:39:15Z","updated_at":"2016-01-24T21:39:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sortlist/paranoia/pulls/1/commits","review_comments_url":"https://api.github.com/repos/sortlist/paranoia/pulls/1/comments","review_comment_url":"https://api.github.com/repos/sortlist/paranoia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sortlist/paranoia/issues/1/comments","statuses_url":"https://api.github.com/repos/sortlist/paranoia/statuses/d8a5ef7aaffdaed952c1943d83d717d5ab116722","head":{"label":"wonderweblabs:rails5","ref":"rails5","sha":"d8a5ef7aaffdaed952c1943d83d717d5ab116722","user":{"login":"wonderweblabs","id":5073884,"avatar_url":"https://avatars.githubusercontent.com/u/5073884?v=3","gravatar_id":"","url":"https://api.github.com/users/wonderweblabs","html_url":"https://github.com/wonderweblabs","followers_url":"https://api.github.com/users/wonderweblabs/followers","following_url":"https://api.github.com/users/wonderweblabs/following{/other_user}","gists_url":"https://api.github.com/users/wonderweblabs/gists{/gist_id}","starred_url":"https://api.github.com/users/wonderweblabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wonderweblabs/subscriptions","organizations_url":"https://api.github.com/users/wonderweblabs/orgs","repos_url":"https://api.github.com/users/wonderweblabs/repos","events_url":"https://api.github.com/users/wonderweblabs/events{/privacy}","received_events_url":"https://api.github.com/users/wonderweblabs/received_events","type":"Organization","site_admin":false},"repo":{"id":48647537,"name":"paranoia","full_name":"wonderweblabs/paranoia","owner":{"login":"wonderweblabs","id":5073884,"avatar_url":"https://avatars.githubusercontent.com/u/5073884?v=3","gravatar_id":"","url":"https://api.github.com/users/wonderweblabs","html_url":"https://github.com/wonderweblabs","followers_url":"https://api.github.com/users/wonderweblabs/followers","following_url":"https://api.github.com/users/wonderweblabs/following{/other_user}","gists_url":"https://api.github.com/users/wonderweblabs/gists{/gist_id}","starred_url":"https://api.github.com/users/wonderweblabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wonderweblabs/subscriptions","organizations_url":"https://api.github.com/users/wonderweblabs/orgs","repos_url":"https://api.github.com/users/wonderweblabs/repos","events_url":"https://api.github.com/users/wonderweblabs/events{/privacy}","received_events_url":"https://api.github.com/users/wonderweblabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wonderweblabs/paranoia","description":"acts_as_paranoid for Rails 3 & 4","fork":true,"url":"https://api.github.com/repos/wonderweblabs/paranoia","forks_url":"https://api.github.com/repos/wonderweblabs/paranoia/forks","keys_url":"https://api.github.com/repos/wonderweblabs/paranoia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wonderweblabs/paranoia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wonderweblabs/paranoia/teams","hooks_url":"https://api.github.com/repos/wonderweblabs/paranoia/hooks","issue_events_url":"https://api.github.com/repos/wonderweblabs/paranoia/issues/events{/number}","events_url":"https://api.github.com/repos/wonderweblabs/paranoia/events","assignees_url":"https://api.github.com/repos/wonderweblabs/paranoia/assignees{/user}","branches_url":"https://api.github.com/repos/wonderweblabs/paranoia/branches{/branch}","tags_url":"https://api.github.com/repos/wonderweblabs/paranoia/tags","blobs_url":"https://api.github.com/repos/wonderweblabs/paranoia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wonderweblabs/paranoia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wonderweblabs/paranoia/git/refs{/sha}","trees_url":"https://api.github.com/repos/wonderweblabs/paranoia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wonderweblabs/paranoia/statuses/{sha}","languages_url":"https://api.github.com/repos/wonderweblabs/paranoia/languages","stargazers_url":"https://api.github.com/repos/wonderweblabs/paranoia/stargazers","contributors_url":"https://api.github.com/repos/wonderweblabs/paranoia/contributors","subscribers_url":"https://api.github.com/repos/wonderweblabs/paranoia/subscribers","subscription_url":"https://api.github.com/repos/wonderweblabs/paranoia/subscription","commits_url":"https://api.github.com/repos/wonderweblabs/paranoia/commits{/sha}","git_commits_url":"https://api.github.com/repos/wonderweblabs/paranoia/git/commits{/sha}","comments_url":"https://api.github.com/repos/wonderweblabs/paranoia/comments{/number}","issue_comment_url":"https://api.github.com/repos/wonderweblabs/paranoia/issues/comments{/number}","contents_url":"https://api.github.com/repos/wonderweblabs/paranoia/contents/{+path}","compare_url":"https://api.github.com/repos/wonderweblabs/paranoia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wonderweblabs/paranoia/merges","archive_url":"https://api.github.com/repos/wonderweblabs/paranoia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wonderweblabs/paranoia/downloads","issues_url":"https://api.github.com/repos/wonderweblabs/paranoia/issues{/number}","pulls_url":"https://api.github.com/repos/wonderweblabs/paranoia/pulls{/number}","milestones_url":"https://api.github.com/repos/wonderweblabs/paranoia/milestones{/number}","notifications_url":"https://api.github.com/repos/wonderweblabs/paranoia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wonderweblabs/paranoia/labels{/name}","releases_url":"https://api.github.com/repos/wonderweblabs/paranoia/releases{/id}","deployments_url":"https://api.github.com/repos/wonderweblabs/paranoia/deployments","created_at":"2015-12-27T14:15:15Z","updated_at":"2016-01-24T21:16:38Z","pushed_at":"2016-01-24T21:34:30Z","git_url":"git://github.com/wonderweblabs/paranoia.git","ssh_url":"git@github.com:wonderweblabs/paranoia.git","clone_url":"https://github.com/wonderweblabs/paranoia.git","svn_url":"https://github.com/wonderweblabs/paranoia","homepage":"","size":300,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"rails5"}},"base":{"label":"sortlist:rails5","ref":"rails5","sha":"37b5a1534694bf132bedaa92f342f817d1f884be","user":{"login":"sortlist","id":10263617,"avatar_url":"https://avatars.githubusercontent.com/u/10263617?v=3","gravatar_id":"","url":"https://api.github.com/users/sortlist","html_url":"https://github.com/sortlist","followers_url":"https://api.github.com/users/sortlist/followers","following_url":"https://api.github.com/users/sortlist/following{/other_user}","gists_url":"https://api.github.com/users/sortlist/gists{/gist_id}","starred_url":"https://api.github.com/users/sortlist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sortlist/subscriptions","organizations_url":"https://api.github.com/users/sortlist/orgs","repos_url":"https://api.github.com/users/sortlist/repos","events_url":"https://api.github.com/users/sortlist/events{/privacy}","received_events_url":"https://api.github.com/users/sortlist/received_events","type":"Organization","site_admin":false},"repo":{"id":47178668,"name":"paranoia","full_name":"sortlist/paranoia","owner":{"login":"sortlist","id":10263617,"avatar_url":"https://avatars.githubusercontent.com/u/10263617?v=3","gravatar_id":"","url":"https://api.github.com/users/sortlist","html_url":"https://github.com/sortlist","followers_url":"https://api.github.com/users/sortlist/followers","following_url":"https://api.github.com/users/sortlist/following{/other_user}","gists_url":"https://api.github.com/users/sortlist/gists{/gist_id}","starred_url":"https://api.github.com/users/sortlist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sortlist/subscriptions","organizations_url":"https://api.github.com/users/sortlist/orgs","repos_url":"https://api.github.com/users/sortlist/repos","events_url":"https://api.github.com/users/sortlist/events{/privacy}","received_events_url":"https://api.github.com/users/sortlist/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sortlist/paranoia","description":"acts_as_paranoid for Rails 3 & 4","fork":true,"url":"https://api.github.com/repos/sortlist/paranoia","forks_url":"https://api.github.com/repos/sortlist/paranoia/forks","keys_url":"https://api.github.com/repos/sortlist/paranoia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sortlist/paranoia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sortlist/paranoia/teams","hooks_url":"https://api.github.com/repos/sortlist/paranoia/hooks","issue_events_url":"https://api.github.com/repos/sortlist/paranoia/issues/events{/number}","events_url":"https://api.github.com/repos/sortlist/paranoia/events","assignees_url":"https://api.github.com/repos/sortlist/paranoia/assignees{/user}","branches_url":"https://api.github.com/repos/sortlist/paranoia/branches{/branch}","tags_url":"https://api.github.com/repos/sortlist/paranoia/tags","blobs_url":"https://api.github.com/repos/sortlist/paranoia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sortlist/paranoia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sortlist/paranoia/git/refs{/sha}","trees_url":"https://api.github.com/repos/sortlist/paranoia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sortlist/paranoia/statuses/{sha}","languages_url":"https://api.github.com/repos/sortlist/paranoia/languages","stargazers_url":"https://api.github.com/repos/sortlist/paranoia/stargazers","contributors_url":"https://api.github.com/repos/sortlist/paranoia/contributors","subscribers_url":"https://api.github.com/repos/sortlist/paranoia/subscribers","subscription_url":"https://api.github.com/repos/sortlist/paranoia/subscription","commits_url":"https://api.github.com/repos/sortlist/paranoia/commits{/sha}","git_commits_url":"https://api.github.com/repos/sortlist/paranoia/git/commits{/sha}","comments_url":"https://api.github.com/repos/sortlist/paranoia/comments{/number}","issue_comment_url":"https://api.github.com/repos/sortlist/paranoia/issues/comments{/number}","contents_url":"https://api.github.com/repos/sortlist/paranoia/contents/{+path}","compare_url":"https://api.github.com/repos/sortlist/paranoia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sortlist/paranoia/merges","archive_url":"https://api.github.com/repos/sortlist/paranoia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sortlist/paranoia/downloads","issues_url":"https://api.github.com/repos/sortlist/paranoia/issues{/number}","pulls_url":"https://api.github.com/repos/sortlist/paranoia/pulls{/number}","milestones_url":"https://api.github.com/repos/sortlist/paranoia/milestones{/number}","notifications_url":"https://api.github.com/repos/sortlist/paranoia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sortlist/paranoia/labels{/name}","releases_url":"https://api.github.com/repos/sortlist/paranoia/releases{/id}","deployments_url":"https://api.github.com/repos/sortlist/paranoia/deployments","created_at":"2015-12-01T09:18:27Z","updated_at":"2015-12-01T09:18:28Z","pushed_at":"2015-12-04T15:27:05Z","git_url":"git://github.com/sortlist/paranoia.git","ssh_url":"git@github.com:sortlist/paranoia.git","clone_url":"https://github.com/sortlist/paranoia.git","svn_url":"https://github.com/sortlist/paranoia","homepage":"","size":296,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"rails4"}},"_links":{"self":{"href":"https://api.github.com/repos/sortlist/paranoia/pulls/1"},"html":{"href":"https://github.com/sortlist/paranoia/pull/1"},"issue":{"href":"https://api.github.com/repos/sortlist/paranoia/issues/1"},"comments":{"href":"https://api.github.com/repos/sortlist/paranoia/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/sortlist/paranoia/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/sortlist/paranoia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sortlist/paranoia/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/sortlist/paranoia/statuses/d8a5ef7aaffdaed952c1943d83d717d5ab116722"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":5,"additions":15,"deletions":15,"changed_files":1}}