{"action":"created","comment":{"url":"https://api.github.com/repos/fortytools/forty_facets/pulls/comments/26761452","id":26761452,"diff_hunk":"@@ -86,6 +86,9 @@ class Movie < ActiveRecord::Base\n   has_and_belongs_to_many :genres\n   has_and_belongs_to_many :actors\n   has_and_belongs_to_many :writers\n+\n+  scope :classics, -> { where('year <= ?', 1980) }\n+  scope :non_classics, -> { where('year > ?', 1980) }","path":"test/fixtures.rb","position":6,"original_position":6,"commit_id":"6cd6243ba1fe68a4170abdcb478f2115eb8977d6","original_commit_id":"6cd6243ba1fe68a4170abdcb478f2115eb8977d6","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-03-19T14:57:17Z","updated_at":"2015-03-19T14:57:17Z","html_url":"https://github.com/fortytools/forty_facets/pull/6#discussion_r26761452","pull_request_url":"https://api.github.com/repos/fortytools/forty_facets/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/fortytools/forty_facets/pulls/comments/26761452"},"html":{"href":"https://github.com/fortytools/forty_facets/pull/6#discussion_r26761452"},"pull_request":{"href":"https://api.github.com/repos/fortytools/forty_facets/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/fortytools/forty_facets/pulls/6","id":31530867,"html_url":"https://github.com/fortytools/forty_facets/pull/6","diff_url":"https://github.com/fortytools/forty_facets/pull/6.diff","patch_url":"https://github.com/fortytools/forty_facets/pull/6.patch","issue_url":"https://api.github.com/repos/fortytools/forty_facets/issues/6","number":6,"state":"open","locked":false,"title":"Add scope based filters","user":{"login":"TobiasBales","id":207504,"avatar_url":"https://avatars.githubusercontent.com/u/207504?v=3","gravatar_id":"","url":"https://api.github.com/users/TobiasBales","html_url":"https://github.com/TobiasBales","followers_url":"https://api.github.com/users/TobiasBales/followers","following_url":"https://api.github.com/users/TobiasBales/following{/other_user}","gists_url":"https://api.github.com/users/TobiasBales/gists{/gist_id}","starred_url":"https://api.github.com/users/TobiasBales/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TobiasBales/subscriptions","organizations_url":"https://api.github.com/users/TobiasBales/orgs","repos_url":"https://api.github.com/users/TobiasBales/repos","events_url":"https://api.github.com/users/TobiasBales/events{/privacy}","received_events_url":"https://api.github.com/users/TobiasBales/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-19T14:57:13Z","updated_at":"2015-03-19T14:57:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f514315a8669b61ae376118c00f75a57ec81ca8e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fortytools/forty_facets/pulls/6/commits","review_comments_url":"https://api.github.com/repos/fortytools/forty_facets/pulls/6/comments","review_comment_url":"https://api.github.com/repos/fortytools/forty_facets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fortytools/forty_facets/issues/6/comments","statuses_url":"https://api.github.com/repos/fortytools/forty_facets/statuses/6cd6243ba1fe68a4170abdcb478f2115eb8977d6","head":{"label":"fortytools:scope_filters","ref":"scope_filters","sha":"6cd6243ba1fe68a4170abdcb478f2115eb8977d6","user":{"login":"fortytools","id":385458,"avatar_url":"https://avatars.githubusercontent.com/u/385458?v=3","gravatar_id":"","url":"https://api.github.com/users/fortytools","html_url":"https://github.com/fortytools","followers_url":"https://api.github.com/users/fortytools/followers","following_url":"https://api.github.com/users/fortytools/following{/other_user}","gists_url":"https://api.github.com/users/fortytools/gists{/gist_id}","starred_url":"https://api.github.com/users/fortytools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fortytools/subscriptions","organizations_url":"https://api.github.com/users/fortytools/orgs","repos_url":"https://api.github.com/users/fortytools/repos","events_url":"https://api.github.com/users/fortytools/events{/privacy}","received_events_url":"https://api.github.com/users/fortytools/received_events","type":"Organization","site_admin":false},"repo":{"id":19816926,"name":"forty_facets","full_name":"fortytools/forty_facets","owner":{"login":"fortytools","id":385458,"avatar_url":"https://avatars.githubusercontent.com/u/385458?v=3","gravatar_id":"","url":"https://api.github.com/users/fortytools","html_url":"https://github.com/fortytools","followers_url":"https://api.github.com/users/fortytools/followers","following_url":"https://api.github.com/users/fortytools/following{/other_user}","gists_url":"https://api.github.com/users/fortytools/gists{/gist_id}","starred_url":"https://api.github.com/users/fortytools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fortytools/subscriptions","organizations_url":"https://api.github.com/users/fortytools/orgs","repos_url":"https://api.github.com/users/fortytools/repos","events_url":"https://api.github.com/users/fortytools/events{/privacy}","received_events_url":"https://api.github.com/users/fortytools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fortytools/forty_facets","description":"FortyFacets lets you easily build explorative search interfaces based on fields of your active_record models.","fork":false,"url":"https://api.github.com/repos/fortytools/forty_facets","forks_url":"https://api.github.com/repos/fortytools/forty_facets/forks","keys_url":"https://api.github.com/repos/fortytools/forty_facets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fortytools/forty_facets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fortytools/forty_facets/teams","hooks_url":"https://api.github.com/repos/fortytools/forty_facets/hooks","issue_events_url":"https://api.github.com/repos/fortytools/forty_facets/issues/events{/number}","events_url":"https://api.github.com/repos/fortytools/forty_facets/events","assignees_url":"https://api.github.com/repos/fortytools/forty_facets/assignees{/user}","branches_url":"https://api.github.com/repos/fortytools/forty_facets/branches{/branch}","tags_url":"https://api.github.com/repos/fortytools/forty_facets/tags","blobs_url":"https://api.github.com/repos/fortytools/forty_facets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fortytools/forty_facets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fortytools/forty_facets/git/refs{/sha}","trees_url":"https://api.github.com/repos/fortytools/forty_facets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fortytools/forty_facets/statuses/{sha}","languages_url":"https://api.github.com/repos/fortytools/forty_facets/languages","stargazers_url":"https://api.github.com/repos/fortytools/forty_facets/stargazers","contributors_url":"https://api.github.com/repos/fortytools/forty_facets/contributors","subscribers_url":"https://api.github.com/repos/fortytools/forty_facets/subscribers","subscription_url":"https://api.github.com/repos/fortytools/forty_facets/subscription","commits_url":"https://api.github.com/repos/fortytools/forty_facets/commits{/sha}","git_commits_url":"https://api.github.com/repos/fortytools/forty_facets/git/commits{/sha}","comments_url":"https://api.github.com/repos/fortytools/forty_facets/comments{/number}","issue_comment_url":"https://api.github.com/repos/fortytools/forty_facets/issues/comments{/number}","contents_url":"https://api.github.com/repos/fortytools/forty_facets/contents/{+path}","compare_url":"https://api.github.com/repos/fortytools/forty_facets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fortytools/forty_facets/merges","archive_url":"https://api.github.com/repos/fortytools/forty_facets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fortytools/forty_facets/downloads","issues_url":"https://api.github.com/repos/fortytools/forty_facets/issues{/number}","pulls_url":"https://api.github.com/repos/fortytools/forty_facets/pulls{/number}","milestones_url":"https://api.github.com/repos/fortytools/forty_facets/milestones{/number}","notifications_url":"https://api.github.com/repos/fortytools/forty_facets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fortytools/forty_facets/labels{/name}","releases_url":"https://api.github.com/repos/fortytools/forty_facets/releases{/id}","created_at":"2014-05-15T11:33:29Z","updated_at":"2015-03-19T11:38:07Z","pushed_at":"2015-03-19T14:57:04Z","git_url":"git://github.com/fortytools/forty_facets.git","ssh_url":"git@github.com:fortytools/forty_facets.git","clone_url":"https://github.com/fortytools/forty_facets.git","svn_url":"https://github.com/fortytools/forty_facets","homepage":null,"size":4546,"stargazers_count":216,"watchers_count":216,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":216,"default_branch":"master"}},"base":{"label":"fortytools:master","ref":"master","sha":"d67f905cc0fa6231d730e3caf86f968075c75bdd","user":{"login":"fortytools","id":385458,"avatar_url":"https://avatars.githubusercontent.com/u/385458?v=3","gravatar_id":"","url":"https://api.github.com/users/fortytools","html_url":"https://github.com/fortytools","followers_url":"https://api.github.com/users/fortytools/followers","following_url":"https://api.github.com/users/fortytools/following{/other_user}","gists_url":"https://api.github.com/users/fortytools/gists{/gist_id}","starred_url":"https://api.github.com/users/fortytools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fortytools/subscriptions","organizations_url":"https://api.github.com/users/fortytools/orgs","repos_url":"https://api.github.com/users/fortytools/repos","events_url":"https://api.github.com/users/fortytools/events{/privacy}","received_events_url":"https://api.github.com/users/fortytools/received_events","type":"Organization","site_admin":false},"repo":{"id":19816926,"name":"forty_facets","full_name":"fortytools/forty_facets","owner":{"login":"fortytools","id":385458,"avatar_url":"https://avatars.githubusercontent.com/u/385458?v=3","gravatar_id":"","url":"https://api.github.com/users/fortytools","html_url":"https://github.com/fortytools","followers_url":"https://api.github.com/users/fortytools/followers","following_url":"https://api.github.com/users/fortytools/following{/other_user}","gists_url":"https://api.github.com/users/fortytools/gists{/gist_id}","starred_url":"https://api.github.com/users/fortytools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fortytools/subscriptions","organizations_url":"https://api.github.com/users/fortytools/orgs","repos_url":"https://api.github.com/users/fortytools/repos","events_url":"https://api.github.com/users/fortytools/events{/privacy}","received_events_url":"https://api.github.com/users/fortytools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fortytools/forty_facets","description":"FortyFacets lets you easily build explorative search interfaces based on fields of your active_record models.","fork":false,"url":"https://api.github.com/repos/fortytools/forty_facets","forks_url":"https://api.github.com/repos/fortytools/forty_facets/forks","keys_url":"https://api.github.com/repos/fortytools/forty_facets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fortytools/forty_facets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fortytools/forty_facets/teams","hooks_url":"https://api.github.com/repos/fortytools/forty_facets/hooks","issue_events_url":"https://api.github.com/repos/fortytools/forty_facets/issues/events{/number}","events_url":"https://api.github.com/repos/fortytools/forty_facets/events","assignees_url":"https://api.github.com/repos/fortytools/forty_facets/assignees{/user}","branches_url":"https://api.github.com/repos/fortytools/forty_facets/branches{/branch}","tags_url":"https://api.github.com/repos/fortytools/forty_facets/tags","blobs_url":"https://api.github.com/repos/fortytools/forty_facets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fortytools/forty_facets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fortytools/forty_facets/git/refs{/sha}","trees_url":"https://api.github.com/repos/fortytools/forty_facets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fortytools/forty_facets/statuses/{sha}","languages_url":"https://api.github.com/repos/fortytools/forty_facets/languages","stargazers_url":"https://api.github.com/repos/fortytools/forty_facets/stargazers","contributors_url":"https://api.github.com/repos/fortytools/forty_facets/contributors","subscribers_url":"https://api.github.com/repos/fortytools/forty_facets/subscribers","subscription_url":"https://api.github.com/repos/fortytools/forty_facets/subscription","commits_url":"https://api.github.com/repos/fortytools/forty_facets/commits{/sha}","git_commits_url":"https://api.github.com/repos/fortytools/forty_facets/git/commits{/sha}","comments_url":"https://api.github.com/repos/fortytools/forty_facets/comments{/number}","issue_comment_url":"https://api.github.com/repos/fortytools/forty_facets/issues/comments{/number}","contents_url":"https://api.github.com/repos/fortytools/forty_facets/contents/{+path}","compare_url":"https://api.github.com/repos/fortytools/forty_facets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fortytools/forty_facets/merges","archive_url":"https://api.github.com/repos/fortytools/forty_facets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fortytools/forty_facets/downloads","issues_url":"https://api.github.com/repos/fortytools/forty_facets/issues{/number}","pulls_url":"https://api.github.com/repos/fortytools/forty_facets/pulls{/number}","milestones_url":"https://api.github.com/repos/fortytools/forty_facets/milestones{/number}","notifications_url":"https://api.github.com/repos/fortytools/forty_facets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fortytools/forty_facets/labels{/name}","releases_url":"https://api.github.com/repos/fortytools/forty_facets/releases{/id}","created_at":"2014-05-15T11:33:29Z","updated_at":"2015-03-19T11:38:07Z","pushed_at":"2015-03-19T14:57:04Z","git_url":"git://github.com/fortytools/forty_facets.git","ssh_url":"git@github.com:fortytools/forty_facets.git","clone_url":"https://github.com/fortytools/forty_facets.git","svn_url":"https://github.com/fortytools/forty_facets","homepage":null,"size":4546,"stargazers_count":216,"watchers_count":216,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":1,"forks":3,"open_issues":1,"watchers":216,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fortytools/forty_facets/pulls/6"},"html":{"href":"https://github.com/fortytools/forty_facets/pull/6"},"issue":{"href":"https://api.github.com/repos/fortytools/forty_facets/issues/6"},"comments":{"href":"https://api.github.com/repos/fortytools/forty_facets/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/fortytools/forty_facets/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/fortytools/forty_facets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fortytools/forty_facets/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/fortytools/forty_facets/statuses/6cd6243ba1fe68a4170abdcb478f2115eb8977d6"}}}}